### Question:
DefaultAtlasContextFactory implements AtlasContextFactory, AtlasContextFactoryMXBean { protected String getModuleName(Class<?> clazz) { AtlasModuleDetail detail = clazz.getAnnotation(AtlasModuleDetail.class); if (detail != null) { return detail.name(); } return "UNDEFINED-" + UUID.randomUUID().toString(); } private  DefaultAtlasContextFactory(); static DefaultAtlasContextFactory getInstance(); @Override synchronized void init(); synchronized void init(CompoundClassLoader cl); @Override void setProperties(Map<String, String> properties); @Override void setProperties(Properties properties); @Override Map<String, String> getProperties(); @Override synchronized void destroy(); @Override AtlasContext createContext(File atlasMappingFile); @Override AtlasContext createContext(URI atlasMappingUri); AtlasContext createContext(AtlasMapping mapping); @Override AtlasContext createContext(Format format, InputStream stream); @Override String getClassName(); @Override String getThreadName(); void setThreadName(String threadName); @Override String getVersion(); @Override String getUuid(); ObjectName getJmxObjectName(); AtlasModuleInfoRegistry getModuleInfoRegistry(); void setModuleInfoRegistry(AtlasModuleInfoRegistry registry); @Override AtlasConversionService getConversionService(); @Override AtlasFieldActionService getFieldActionService(); @Override AtlasCombineStrategy getCombineStrategy(); void setCombineStrategy(AtlasCombineStrategy atlasCombineStrategy); @Override AtlasPropertyStrategy getPropertyStrategy(); @Override void setPropertyStrategy(AtlasPropertyStrategy atlasPropertyStrategy); @Override AtlasSeparateStrategy getSeparateStrategy(); void setSeparateStrategy(AtlasSeparateStrategy atlasSeparateStrategy); @Override AtlasValidationService getValidationService(); void setValidationService(AtlasValidationService atlasValidationService); CompoundClassLoader getClassLoader(); @Override void addClassLoader(ClassLoader cl); void setClassLoader(CompoundClassLoader cl);  }### Answer:
@Test public void testGetModuleName() { factory = DefaultAtlasContextFactory.getInstance(); assertNotNull(factory.getModuleName(Object.class)); }