public void shouldBeAbleToDefaultTargetToDefaultRegisteredContainer() throws Exception
{
String name = "some-name";
ContainerRegistry registry = new ContainerRegistry();
registry.create(new ContainerDefImpl(ARQUILLIAN_XML).setContainerName("some-other-name"), serviceLoader);
registry.create(new ContainerDefImpl(ARQUILLIAN_XML).setContainerName(name).setDefault(), serviceLoader);
Container container = registry.getContainer(TargetDescription.DEFAULT);
Assert.assertEquals(
"Verify that the default registered container is returned as default",