### Question:
DefaultAtlasContext implements AtlasContext, AtlasContextMXBean { public DefaultAtlasContext(URI atlasMappingUri) { this(DefaultAtlasContextFactory.getInstance(), atlasMappingUri); } DefaultAtlasContext(URI atlasMappingUri);  DefaultAtlasContext(DefaultAtlasContextFactory factory, URI atlasMappingUri);  DefaultAtlasContext(DefaultAtlasContextFactory factory, AtlasMapping mapping);  DefaultAtlasContext(DefaultAtlasContextFactory factory,
            AtlasContextFactory.Format format, InputStream stream); @Override Audits processPreview(Mapping mapping); @Override void process(AtlasSession userSession); @Override void processValidation(AtlasSession userSession); @Override AtlasContextFactory getContextFactory(); AtlasMapping getMapping(); @Override AtlasSession createSession(); AtlasSession createSession(AtlasMapping mappingDefinition); Map<String, AtlasModule> getSourceModules(); void setSourceModules(Map<String, AtlasModule> sourceModules); Map<String, AtlasModule> getTargetModules(); void setTargetModules(Map<String, AtlasModule> targetModules); Map<String, LookupTable> getLookupTables(); void setLookupTables(Map<String, LookupTable> lookupTables); ObjectName getJmxObjectName(); @Override String getUuid(); @Override String getVersion(); @Override String getMappingName(); @Override String getMappingUri(); @Override String getClassName(); @Override String getThreadName(); @Override String toString(); ADMArchiveHandler getADMArchiveHandler(); static final String CONSTANTS_DOCUMENT_ID; static final String PROPERTIES_DOCUMENT_ID; }### Answer:
@Test public void testDefaultAtlasContext() throws AtlasException { File file = Paths.get( "src" + File.separator + "test" + File.separator + "resources" + File.separator + "atlasmapping.json") .toFile(); DefaultAtlasContextFactory factory = DefaultAtlasContextFactory.getInstance(); factory.init(); DefaultAtlasContext context = new DefaultAtlasContext(factory, file.toURI()); context.init(); assertNotNull(context); assertNotNull(context.getClassName()); assertNotNull(context.getMapping()); assertNotNull(context.getMappingName()); assertNotNull(context.getMappingUri()); assertNotNull(context.getThreadName()); assertNull(context.getVersion()); assertNotNull(context.toString()); context.setLookupTables(null); context.setSourceModules(null); context.setTargetModules(null); context.setMappingUri(file.toURI()); assertNotNull(new DefaultAtlasContext(file.toURI())); }