### Question:
R4CodeFhirToDhisTransformerUtils extends AbstractCodeFhirToDhisTransformerUtils { @Override public boolean containsCode( @Nullable ICompositeType codeableConcept, @Nullable String system, @Nonnull String code ) { if ( codeableConcept == null ) { return false; } return ((CodeableConcept) codeableConcept).getCoding().stream().anyMatch( coding -> Objects.equals( system, coding.getSystem() ) && code.equals( coding.getCode() ) ); } R4CodeFhirToDhisTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext,
        @Nonnull CodeRepository codeRepository,
        @Nonnull SystemCodeRepository systemCodeRepository ); @Nonnull @Override Set<FhirVersion> getFhirVersions(); @Nonnull @Override List<SystemCodeValue> getSystemCodeValues( @Nullable ICompositeType codeableConcept ); @Override @Nullable String getCode( @Nullable ICompositeType codeableConcept, @Nullable String system ); @Override boolean containsMappingCode( @Nullable ICompositeType codeableConcept, @Nullable Object mappingCodes ); @Override boolean containsCode( @Nullable ICompositeType codeableConcept, @Nullable String system, @Nonnull String code );  }### Answer:
@Test public void containsCodeNull() { Assert.assertFalse( utils.containsCode( null, "http: }
@Test public void containsCode() { final CodeableConcept codeableConcept = new CodeableConcept(); codeableConcept.addCoding( new Coding().setSystem( "http: .addCoding( new Coding().setSystem( "http: Assert.assertTrue( utils.containsCode( codeableConcept, "http: }
@Test public void containsCodeNot() { final CodeableConcept codeableConcept = new CodeableConcept(); codeableConcept.addCoding( new Coding().setSystem( "http: .addCoding( new Coding().setSystem( "http: Assert.assertFalse( utils.containsCode( codeableConcept, "http: }