### Question:
TypeDecoder { static <T extends Bytes> T decodeBytes(String input, Class<T> type) { return decodeBytes(input, 0, type); }  static T decode(
            String input, int offset, TypeReference<T> typeReference,long chainId);  }### Answer:
@Test public void testStaticBytes() { Bytes6 staticBytes = new Bytes6(new byte[] { 0, 1, 2, 3, 4, 5 }); assertThat(TypeDecoder.decodeBytes( "0001020304050000000000000000000000000000000000000000000000000000", Bytes6.class), is(staticBytes)); Bytes empty = new Bytes1(new byte[] { 0 }); assertThat(TypeDecoder.decodeBytes( "0000000000000000000000000000000000000000000000000000000000000000", Bytes1.class), is(empty)); Bytes dave = new Bytes4("dave".getBytes()); assertThat(TypeDecoder.decodeBytes( "6461766500000000000000000000000000000000000000000000000000000000", Bytes4.class), is(dave)); }