### Question:
DefaultAtlasContextFactory implements AtlasContextFactory, AtlasContextFactoryMXBean { protected List<String> getConfigPackages(Class<?> clazz) { List<String> configPackages = null; AtlasModuleDetail detail = clazz.getAnnotation(AtlasModuleDetail.class); if (detail != null) { configPackages = new ArrayList<>(); String[] packages = detail.configPackages(); for (String pkg : packages) { configPackages.add(pkg.trim()); } } if (LOG.isDebugEnabled()) { LOG.debug("Module: {} config packages: {}", clazz.getCanonicalName(), configPackages); } return configPackages; } 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 testGetConfigPackages() { factory = DefaultAtlasContextFactory.getInstance(); assertNotNull(factory.getConfigPackages(MockModule.class)); }