ImmutableJsonString extends AbstractJsonValue { @Override public String toString() { String result = stringRepresentation; if (null == result) { result = createStringRepresentation(); stringRepresentation = result; } return result; } private  ImmutableJsonString(final String jsonString); static ImmutableJsonString of(final String string); @Override boolean isString(); @Override String asString(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); @Override void writeValue(final SerializationContext serializationContext); @Override long getUpperBoundForStringSize();  }
@Test public void toStringReturnsExpected() { final String expected = "\"" + KNOWN_STRING_VALUE + "\""; final com.eclipsesource.json.JsonValue underTest = Json.value(KNOWN_STRING_VALUE); assertThat(underTest.toString()).isEqualTo(expected); }