CSHelper { public static CS buildCS(String code) { CS csCode = new CS(); csCode.setCode(code); return csCode; }  static CS buildCS(String code);  }
@Test public void testBuildCS() { String code = "CS"; CS cs = new CS(); CSHelper helper = new CSHelper(); cs = helper.buildCS(code); assertEquals(cs.getCode(),"CS"); }
@Test public void testBuildCS() { CSHelper cs = new CSHelper(); CS csCode = new CS(); String code = "CONNECT"; csCode = cs.buildCS(code); assertEquals(csCode.getCode(),code); }