ImmutableCursorOption implements CursorOption { @Override public String toString() { return "cursor(" + cursor + ")"; } private  ImmutableCursorOption(final String cursor); @Override void accept(final OptionVisitor visitor); @Override boolean equals(final Object o); @Override String getCursor(); @Override int hashCode(); @Override String toString();  }
@Test public void toStringReturnsExpected() { final String expected = "cursor(CURSOR)"; assertThat(underTest.toString()).isEqualTo(expected); }