}
@Test
public void testRegisterEntityWithInterface() throws Exception {
final ExtensibleBeanFactory fb = new ClassLoaderBeanFactory(ClassLoaderBeanFactoryTest.class.getClassLoader());
fb.registerEntity("myEntity", EntityClass.class.getCanonicalName(), EntityInterface.class.getCanonicalName());
final Class myEntityClass = fb.getClazz("myEntity");
assertNotNull(myEntityClass);
assertEquals(myEntityClass, EntityInterface.class);
final Object myEntityInstance = fb.get("myEntity");
assertNotNull(myEntityInstance);
assertEquals(myEntityInstance.getClass(), EntityClass.class);
}