BrowserOperatingSystemMapping implements Serializable { @Override public String toString() { final StringBuilder builder = new StringBuilder(); builder.append("BrowserOperatingSystemMapping [browserId="); builder.append(browserId); builder.append(", operatingSystemId="); builder.append(operatingSystemId); builder.append("]"); return builder.toString(); } BrowserOperatingSystemMapping(@Nonnegative final int browserId, @Nonnegative final int operatingSystemId); @Override boolean equals(final Object obj); @Nonnegative int getBrowserId(); @Nonnegative int getOperatingSystemId(); @Override int hashCode(); @Override String toString();  }
@Test public void testToString() { final BrowserOperatingSystemMapping m = new BrowserOperatingSystemMapping(12345, 98765); assertThat(m.toString()).isEqualTo("BrowserOperatingSystemMapping [browserId=12345, operatingSystemId=98765]"); }