@Test(expected = IllegalArgumentException.class)
public void testRegisterEntityDuplicate() throws Exception {
final ExtensibleBeanFactory fb = new ClassLoaderBeanFactory(ClassLoaderBeanFactoryTest.class.getClassLoader());
fb.registerEntity("myEntity", EntityClass.class.getCanonicalName(), EntityInterface.class.getCanonicalName());
fb.registerEntity("myEntity", EntityClass.class.getCanonicalName(), EntityInterface.class.getCanonicalName());
}
@Test
public void testMapConstructor() throws Exception {