@Test
public void doNotTruncateWithoutViolation() {

    final String key = "/attributes/doesNotTruncateWithoutViolation";
    final int maxAllowedValueForKey = MAX_INDEX_CONTENT_LENGTH - OVERHEAD - key.length();
    final String value = TestStringGenerator.createStringOfBytes(maxAllowedValueForKey);
    assertThat(indexLengthRestrictionEnforcer.enforce(JsonPointer.of(key), JsonValue.of(value)))
            .contains(JsonValue.of(value));
}