public void testConfigureByType() throws Exception {
ConfigurationFactory factory = new ConfigurationFactory();
Container container = new Container("MyContainer", "STATELESS", null);
container.getProperties().setProperty("anotherProperty", "Cheese is good");
ContainerInfo myStatelessContainer = factory.configureService(container, ContainerInfo.class);
assertNotNull(myStatelessContainer);
assertEquals("org.apache.openejb.core.stateless.StatelessContainerFactory", myStatelessContainer.className);
}