@Test
  public void testGeneralOptionalReferenceTypeFieldsClass01() throws Exception {
    GeneralOptionalReferenceTypeFieldsClass src = new GeneralOptionalReferenceTypeFieldsClass();
    src.f0 = null;
    src.f1 = null;
    src.f2 = null;
    src.f3 = null;
    src.f4 = null;
    src.f5 = null;
    src.f6 = null;
    src.f7 = null;
    src.f8 = null;
    src.f9 = null;
    src.f10 = null;

    byte[] raw = MessagePack.pack(src);

    GeneralOptionalReferenceTypeFieldsClass dst =
        MessagePack.unpack(raw, GeneralOptionalReferenceTypeFieldsClass.class);

    assertThat(dst, beansEquals(src));
  }
  @Test
  public void testGeneralOptionalReferenceTypeFieldsClass00() throws Exception {
    GeneralOptionalReferenceTypeFieldsClass src = new GeneralOptionalReferenceTypeFieldsClass();
    src.f0 = 0;
    src.f1 = 1;
    src.f2 = 2;
    src.f3 = (long) 3;
    src.f4 = (float) 4;
    src.f5 = (double) 5;
    src.f6 = false;
    src.f7 = new BigInteger("7");
    src.f8 = "8";
    src.f9 = new byte[] {0x01, 0x02};
    src.f10 = ByteBuffer.wrap("muga".getBytes());

    byte[] raw = MessagePack.pack(src);

    GeneralOptionalReferenceTypeFieldsClass dst =
        MessagePack.unpack(raw, GeneralOptionalReferenceTypeFieldsClass.class);

    assertThat(dst, beansEquals(src));
  }