### Question:
ORUR01Handler implements Application { private Concept getConcept(CE codedElement, String uid) throws HL7Exception { String hl7ConceptId = codedElement.getIdentifier().getValue(); String codingSystem = codedElement.getNameOfCodingSystem().getValue(); return getConcept(hl7ConceptId, codingSystem, uid); }  @Override boolean canProcess(Message message); @Override Message processMessage(Message message); List<NK1> getNK1List(ORU_R01 oru); Form getForm(MSH msh);  }### Answer:
@Test public void getConcept_shouldReturnAConceptIfGivenLocalCodingSystem() throws Exception { Assert.assertEquals(5089, new ORUR01Handler().getConcept("5089", "99DCT", "xj39bnj4k34nmf").getId().intValue()); }
@Test public void getConcept_shouldReturnAMappedConceptIfGivenAValidMapping() throws Exception { Assert.assertEquals(5089, new ORUR01Handler().getConcept("WGT234", "SSTRM", "23498343sdnm3").getId().intValue()); }
@Test public void getConcept_shouldReturnNullIfCodingSystemNotFound() throws Exception { Assert.assertNull(new ORUR01Handler().getConcept("123", "a nonexistent coding system", "n3jn2345g89n4")); Assert.assertNull(new ORUR01Handler().getConcept("93939434834", "SSTRM", "xcjk23h89gn34k234")); }
@Test @Verifies(value = "should return a Concept if given local coding system", method = "getConcept(String,String)") public void getConcept_shouldReturnAConceptIfGivenLocalCodingSystem() throws Exception { Assert.assertEquals(5089, new ORUR01Handler().getConcept("5089", "99DCT", "xj39bnj4k34nmf").getId().intValue()); }
@Test @Verifies(value = "should return a mapped Concept if given a valid mapping", method = "getConcept(String,String)") public void getConcept_shouldReturnAMappedConceptIfGivenAValidMapping() throws Exception { Assert.assertEquals(5089, new ORUR01Handler().getConcept("WGT234", "SSTRM", "23498343sdnm3").getId().intValue()); }
@Test @Verifies(value = "should return null if codingSystem not found", method = "getConcept(String,String)") public void getConcept_shouldReturnNullIfCodingSystemNotFound() throws Exception { Assert.assertNull(new ORUR01Handler().getConcept("123", "a nonexistent coding system", "n3jn2345g89n4")); Assert.assertNull(new ORUR01Handler().getConcept("93939434834", "SSTRM", "xcjk23h89gn34k234")); }