CDHelper { public static CD CDFactory(String codeValue, String codeSystem) { CD code = new CD(); code.setCode(codeValue); code.setCodeSystem(codeSystem); return code; }  static CD CDFactory(String codeValue, String codeSystem);  }
@Test public void CDFactory() { CD cd = new CD(); CDHelper helper = new CDHelper(); String codeValue = "CD"; String codeSystem = "Connect"; cd = helper.CDFactory(codeValue, codeSystem); assertEquals(cd.getCode(), codeValue); assertEquals(cd.getCodeSystem(), "Connect"); }
@Test public void testCDFactory() { String codeValue = "CD"; String codeSystem = "CONNECT"; CDHelper cd = new CDHelper(); CD code = new CD(); code = cd.CDFactory(codeValue, codeSystem); assertEquals(code.getCode(),codeValue); assertEquals(code.getCodeSystem(), codeSystem); }