@Test
public void testSerialization() {

    ObjectResultDataset dataset = new ObjectResultDataset(
            new TObjectResultDataset());
    dataset.insert(1L, "name", "Jeff Nelson");
    PluginSerializer serializer = new PluginSerializer();
    ByteBuffer bytes = serializer.serialize(dataset);
    ComplexTObject complex = ComplexTObject.fromJavaObject(bytes);
    ByteBuffer bytes2 = complex.getJavaObject();
    Object obj = serializer.deserialize(bytes2);
    Assert.assertEquals(dataset, obj);
}