@Test
@Ignore
public void unsupportedLength() {

    int length = 56;
    int offset = 192;
    byte[] encodedLength;
    // length > 2^64
    // TODO: Fix this test - when casting double to int, information gets lost since 'int' is max (2^31)-1
    double maxLength = Math.pow(256, 8);
    try {
        encodedLength = encodeLength((int) maxLength, offset);
        System.out.println("length: " + length + ", offset: " + offset + ", encoded: " + Arrays.toString(encodedLength));
        fail("Expecting RuntimeException: 'Input too long'");
    } catch (RuntimeException e) {
        // Success!
    }
}