Browser implements Identifiable, Serializable { @Override public String toString() { final StringBuilder builder = new StringBuilder(); builder.append("Browser [id="); builder.append(id); builder.append(", family="); builder.append(family); builder.append(", familyName="); builder.append(familyName); builder.append(", patterns="); builder.append(patterns); builder.append(", type="); builder.append(type); builder.append(", operatingSystem="); builder.append(operatingSystem); builder.append(", icon="); builder.append(icon); builder.append(", infoUrl="); builder.append(infoUrl); builder.append(", producer="); builder.append(producer); builder.append(", producerUrl="); builder.append(producerUrl); builder.append(", url="); builder.append(url); builder.append("]"); return builder.toString(); } Browser(@Nonnegative final int id, @Nonnull final UserAgentFamily family, @Nonnull final String familyName,
			@Nonnull final SortedSet<BrowserPattern> patterns, @Nonnull final BrowserType type,
			@Nonnull final OperatingSystem operatingSystem, @Nonnull final String icon, @Nonnull final String infoUrl,
			@Nonnull final String producer, @Nonnull final String producerUrl, @Nonnull final String url); void copyTo(@Nonnull final UserAgent.Builder builder); @Override boolean equals(final Object obj); @Nonnull UserAgentFamily getFamily(); @Nonnull String getFamilyName(); @Nonnull String getIcon(); @Override @Nonnegative int getId(); @Nonnull String getInfoUrl(); @Nullable OperatingSystem getOperatingSystem(); @Nonnull SortedSet<BrowserPattern> getPatterns(); @Nonnull String getProducer(); @Nonnull String getProducerUrl(); @Nonnull BrowserType getType(); @Nonnull String getUrl(); @Override int hashCode(); @Override String toString();  }
@Test public void testToString() { final int id = 12354; final String icon = "bunt.png"; final String infoUrl = "http: final String url = "http: final UserAgentFamily family = UserAgentFamily.FIREFOX; final String producerUrl = "https: final String producer = "Our Values"; final BrowserType type = new BrowserType(1, "Browser"); final SortedSet<OperatingSystemPattern> osPatternSet = new TreeSet<OperatingSystemPattern>(); final OperatingSystem os = new OperatingSystem(1, "n1", "f1", "iu1", osPatternSet, "p1", "pu1", "u1", "i1"); final SortedSet<BrowserPattern> patterns = new TreeSet<BrowserPattern>(); final Browser b = new Browser(id, family, family.getName(), patterns, type, os, icon, infoUrl, producer, producerUrl, url); assertThat(b.toString()) .isEqualTo( "Browser [id=12354, family=FIREFOX, familyName=Firefox, patterns=[], type=BrowserType [id=1, name=Browser], operatingSystem=OperatingSystem [id=1, name=n1, family=f1, infoUrl=iu1, patterns=[], producer=p1, producerUrl=pu1, url=u1, icon=i1], icon=bunt.png, infoUrl=http: }