@Test
public void testStaticBytes() {

    Bytes staticBytes = new Bytes6(new byte[] { 0, 1, 2, 3, 4, 5 });
    assertThat(TypeEncoder.encodeBytes(staticBytes),
            is("0001020304050000000000000000000000000000000000000000000000000000"));
    Bytes empty = new Bytes1(new byte[] { 0 });
    assertThat(TypeEncoder.encodeBytes(empty),
            is("0000000000000000000000000000000000000000000000000000000000000000"));
    Bytes dave = new Bytes4("dave".getBytes());
    assertThat(TypeEncoder.encodeBytes(dave),
            is("6461766500000000000000000000000000000000000000000000000000000000"));
}