BatchJobListParam { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("BatchJobListParam["); sb.append("jobAppCd=" + JobAppCd); sb.append(",curAppStatusList=" + CurAppStatusList); sb.append("]"); return sb.toString(); }  void setJobAppCd(final String argJobAppCd); String getJobAppCd(); void setCurAppStatusList(final List<String> argCurAppStatusList); List<String> getCurAppStatusList(); @Override String toString();  }
@Test public void testToString() { BatchJobListParam p = new BatchJobListParam(); p.setJobAppCd("cd"); p.setCurAppStatusList(Arrays.asList("a", "b")); assertEquals("BatchJobListParam[jobAppCd=cd,curAppStatusList=[a, b]]", p .toString()); }