### Question:
InMemoryTerminologyServerValidationSupport implements IValidationSupport { @Override public CodeValidationResult validateCodeInValueSet(ValidationSupportContext theValidationSupportContext, ConceptValidationOptions theOptions, String theCodeSystemUrlAndVersion, String theCode, String theDisplay, @Nonnull IBaseResource theValueSet) { org.hl7.fhir.r5.model.ValueSet expansion = expandValueSetToCanonical(theValidationSupportContext, theValueSet, theCodeSystemUrlAndVersion, theCode); if (expansion == null) { return null; } return validateCodeInExpandedValueSet(theValidationSupportContext, theOptions, theCodeSystemUrlAndVersion, theCode, theDisplay, expansion); } InMemoryTerminologyServerValidationSupport(FhirContext theCtx); @Override FhirContext getFhirContext(); @Override ValueSetExpansionOutcome expandValueSet(ValidationSupportContext theValidationSupportContext, ValueSetExpansionOptions theExpansionOptions, IBaseResource theValueSetToExpand); @Override CodeValidationResult validateCodeInValueSet(ValidationSupportContext theValidationSupportContext, ConceptValidationOptions theOptions, String theCodeSystemUrlAndVersion, String theCode, String theDisplay, @Nonnull IBaseResource theValueSet); @Override CodeValidationResult validateCode(ValidationSupportContext theValidationSupportContext, ConceptValidationOptions theOptions, String theCodeSystem, String theCode, String theDisplay, String theValueSetUrl); @Override LookupCodeResult lookupCode(ValidationSupportContext theValidationSupportContext, String theSystem, String theCode); @Override boolean isCodeSystemSupported(ValidationSupportContext theValidationSupportContext, String theSystem); @Override boolean isValueSetSupported(ValidationSupportContext theValidationSupportContext, String theValueSetUrl);  }### Answer:
@Test public void testValidateCodeInUnknownCodeSystemWithEnumeratedValueSet() { ValueSet vs = new ValueSet(); vs.setUrl("http: vs .getCompose() .addInclude() .setSystem("http: .addConcept(new ValueSet.ConceptReferenceComponent(new CodeType("code1"))) .addConcept(new ValueSet.ConceptReferenceComponent(new CodeType("code2"))); myPrePopulated.addValueSet(vs); ValidationSupportContext valCtx = new ValidationSupportContext(myChain); ConceptValidationOptions options = new ConceptValidationOptions(); IValidationSupport.CodeValidationResult outcome = myChain.validateCodeInValueSet(valCtx, options, "http: assertTrue(outcome.isOk()); outcome = myChain.validateCodeInValueSet(valCtx, options, "http: assertNull(outcome); }