SimpleAscendingOrder implements Order { @Override public String toString() { return "SimpleAscendingOrder{" + "fieldName='" + fieldName + '\'' + '}'; } SimpleAscendingOrder(
            @NotNull
            final String fieldName); @Override @NotNull String getFieldName(); @NotNull @Override SortOrder getOrder(); @Override String toString();  }
@Test public void nonDefaultToString() { Assert.assertTrue( new SimpleAscendingOrder("myField").toString() .contains("myField")); }