### Question:
DefaultAtlasContext implements AtlasContext, AtlasContextMXBean { @Override public void processValidation(AtlasSession userSession) throws AtlasException { if (!(userSession instanceof DefaultAtlasSession)) { throw new AtlasException(String.format("Unsupported session class '%s'", userSession.getClass().getName())); } if (!this.equals(userSession.getAtlasContext())) { throw new AtlasException("Cannot execute AtlasSession created by the other AtlasContext"); } DefaultAtlasSession session = (DefaultAtlasSession) userSession; if (LOG.isDebugEnabled()) { LOG.debug("Begin processValidation {}", session); } List<Validation> validations = getContextFactory().getValidationService().validateMapping(session.getMapping()); if (validations != null && !validations.isEmpty()) { session.getValidations().getValidation().addAll(validations); } if (LOG.isDebugEnabled()) { LOG.debug("Detected {} core validation notices", validations == null ? 0 : validations.size()); } for (AtlasModule module : getSourceModules().values()) { module.processPreValidation(session); } for (AtlasModule module : getTargetModules().values()) { module.processPreValidation(session); } if (LOG.isDebugEnabled()) { LOG.debug("End processValidation {}", session); } } 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 testProcessValidationWithoutMappings() throws AtlasException { recreateSession(); context.processValidation(session); assertFalse(printAudit(session), session.hasErrors()); assertFalse(printAudit(session), session.hasWarns()); }