### Question:
SSZObjectHasher implements ObjectHasher<Hash32> { @Override public Hash32 getHashTruncateLast(Object input) { if (input instanceof List) { throw new RuntimeException("Lists are not supported in truncated hash"); } else { return Hash32.wrap(Bytes32.wrap(sszHasher.hashTruncateLast(input, input.getClass()))); } } SSZObjectHasher(SSZHasher sszHasher); static SSZObjectHasher createIncremental(
      SpecConstants constants, Function<BytesValue, Hash32> hashFunction); static SSZObjectHasher create(
      SpecConstants constants, Function<BytesValue, Hash32> hashFunction, boolean incremental); @Override Hash32 getHash(Object input); @Override Hash32 getHashTruncateLast(Object input);  }### Answer:
@Test public void simpleTruncateTest() { AttestationRecord attestationRecord = new AttestationRecord( 123, Collections.emptyList(), DEFAULT_HASH, new Bitfield(BytesValue.fromHexString("abcdef45").getArrayUnsafe()), DEFAULT_HASH, 12412L, 12400L, DEFAULT_SIG); BytesValue hash2 = sszHasher.getHashTruncateLast(attestationRecord); }