package amazon.jaws.spike.configuration.hivemind;

import org.apache.hivemind.Registry;
import org.apache.hivemind.impl.RegistryBuilder;

import junit.framework.TestCase;

public class FooWorkerTest extends TestCase {

    private Registry registry;
    
    protected void setUp() throws Exception {
        super.setUp();
        this.registry = RegistryBuilder.constructDefaultRegistry();
    }

    protected void tearDown() throws Exception {
        super.tearDown();
    }

    public void testCreation() {
        Worker fooWorker = (Worker) this.registry.getService(FooWorkerImpl.class);
        assertNotNull(fooWorker);
    }
    
}
