ClassLoaderBeanFactory implements ExtensibleBeanFactory { public Class getClazz(final String entityBeanKey) { return getClassFromMapping(entityBeanKey, mappingReps, cacheReps); } ClassLoaderBeanFactory(final ClassLoader classLoader);  ClassLoaderBeanFactory(final ClassLoader classLoader,
                                  final Map<String, String> mappingClasses,
                                  final Map<String, String> mappingEntityRepresentatives); void registerDto(final String key, final String className); void registerEntity(final String key, final String className, final String representative); Class getClazz(final String entityBeanKey); Object get(final String entityBeanKey); void releaseResources();  }
@Test public void testGetClazzNotFound() throws Exception { final ExtensibleBeanFactory fb = new ClassLoaderBeanFactory(ClassLoaderBeanFactoryTest.class.getClassLoader()); final Class myDtoClass = fb.getClazz("myDto"); assertNull(myDtoClass); }
@Test public void testGetClazzNull() throws Exception { final ExtensibleBeanFactory fb = new ClassLoaderBeanFactory(ClassLoaderBeanFactoryTest.class.getClassLoader()); final Class myDtoClass = fb.getClazz(null); assertNull(myDtoClass); }
@Test public void testGetClazzEmpty() throws Exception { final ExtensibleBeanFactory fb = new ClassLoaderBeanFactory(ClassLoaderBeanFactoryTest.class.getClassLoader()); final Class myDtoClass = fb.getClazz(null); assertNull(myDtoClass); }