ImmutableLimitOption implements LimitOption { @Override public String toString() { return "limit(" + offset + "," + count + ")"; } private  ImmutableLimitOption(final int offset, final int count); static ImmutableLimitOption of(final int offset, final int count); @Override void accept(final OptionVisitor visitor); @Override boolean equals(final Object o); @Override int getOffset(); @Override int getCount(); @Override int hashCode(); @Override String toString();  }
@Test public void toStringReturnsExpected() { final String expected = "limit(23,42)"; assertThat(underTest.toString()).isEqualTo(expected); }