ImmutableSizeOption implements SizeOption { @Override public String toString() { return "size(" + size + ")"; } private  ImmutableSizeOption(final int size); @Override void accept(final OptionVisitor visitor); @Override boolean equals(final Object o); @Override int getSize(); @Override int hashCode(); @Override String toString();  }
@Test public void toStringReturnsExpected() { final String expected = "size(14)"; assertThat(underTest.toString()).isEqualTo(expected); }