GraphResult { @Override public String toString() { return new ToStringBuilder(this) .append("result", result) .append("context", context) .toString(); } @JsonCreator  GraphResult(@JsonProperty("result") final O result, @JsonProperty("context") final Context context); O getResult(); Context getContext(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }
@Test public void toStringCoverage() { final GraphResult<Operation> actual = new GraphResult<>(operation, context); assertTrue(actual.toString().contains("GraphResult[result=uk.gov.gchq.gaffer.operation.impl.get.GetAllElements")); }