RobotsConfig { @Override @Nonnull public String toString() { return MoreObjects.toStringHelper(this) .add("cacheExpiresHours", cacheExpiresHours) .add("cacheMaxSizeRecords", cacheMaxSizeRecords) .add("maxFileSizeBytes", maxFileSizeBytes) .add("maxRedirectHops", maxRedirectHops) .add("defaultCharset", defaultCharset) .add("userAgent", userAgent) .add("requestTimeoutMillis", requestTimeoutMillis) .add("readTimeoutMillis", readTimeoutMillis) .toString(); }  long getRequestTimeoutMillis(); void setRequestTimeoutMillis(@Nonnegative long requestTimeoutMillis); int getReadTimeoutMillis(); void setReadTimeoutMillis(@Nonnegative int readTimeoutMillis); @Nonnull String getUserAgent(); void setUserAgent(@Nonnull String userAgent); @Nonnull Charset getDefaultCharset(); void setDefaultCharset(@Nonnull Charset defaultCharset); @Nonnegative int getMaxRedirectHops(); void setMaxRedirectHops(@Nonnegative int maxRedirectHops); @Nonnegative long getCacheExpiresHours(); void setCacheExpiresHours(@Nonnegative long cacheExpiresHours); @Nonnegative long getCacheMaxSizeRecords(); void setCacheMaxSizeRecords(@Nonnegative long cacheMaxSizeRecords); @Nonnegative int getMaxFileSizeBytes(); void setMaxFileSizeBytes(@Nonnegative int maxFileSizeBytes); @Override @Nonnull String toString();  }
@Test public void givenValidConfig_whenToString_thenReturnsNonNull() { String stringRepresentation = config.toString(); assertThat(stringRepresentation, notNullValue()); }