BatchJobListResult { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("BatchJobListResult["); sb.append("jobSequenceId=" + jobSequenceId); sb.append("]"); return sb.toString(); }  void setJobSequenceId(final String jobSequenceId); String getJobSequenceId(); @Override String toString();  }
@Test public void testToString() { BatchJobListResult r = new BatchJobListResult(); r.setJobSequenceId("a"); assertEquals("BatchJobListResult[jobSequenceId=a]", r.toString()); }