@Test
public void twoParsedArraysFromSameStringHaveSameHashCode() {

    final String jsonArrayString =
            "[\"latitude\", 44.673856, \"longitude\", 8.261719, \"maker\", \"ACME\"]";
    final Function<String, JsonValue> parser = JsonValueParser.fromString();
    final JsonValue parsedFirst = parser.apply(jsonArrayString);
    final JsonValue parsedSecond = parser.apply(jsonArrayString);
    assertThat(parsedFirst).isInstanceOf(ImmutableJsonArray.class);
    assertThat(parsedSecond).isInstanceOf(ImmutableJsonArray.class);
    assertThat(parsedFirst.hashCode()).isEqualTo(parsedSecond.hashCode());
}