@Test
public void testBoolDecodeGivenOffset() {

    // Decode second parameter as Bool
    assertThat(TypeDecoder.decode(
            "0000000000000000000000000000000000000000000000007fffffffffffffff"
                    + "0000000000000000000000000000000000000000000000000000000000000000"
                    + "0000000000000000000000000000000000000000000000007fffffffffffffff",
            64, Bool.class),
            is(new Bool(false)));
    assertThat(TypeDecoder.decode(
            "0000000000000000000000000000000000000000000000007fffffffffffffff"
                    + "0000000000000000000000000000000000000000000000000000000000000001"
                    + "0000000000000000000000000000000000000000000000007fffffffffffffff",
            64, Bool.class),
            is(new Bool(true)));
}