@Test
public void readFromByteArrayWithOffset() {

    final int paddingFront = 20;
    final int paddingBack = 42;
    final byte[] arrayWithOffsetAndLength = new byte[ paddingFront + testBytes.length + paddingBack];
    System.arraycopy(testBytes, 0, arrayWithOffsetAndLength, paddingFront-1, testBytes.length);
    final JsonValue result = cborFactory.readFrom(arrayWithOffsetAndLength, paddingFront - 1, testBytes.length);
    assertThat(result).isEqualTo(testValue);
}