@Test
public void testConvertToComplexTObject() {

    TObjectResultDataset dataset = new TObjectResultDataset();
    dataset.insert(1L, "age", Convert.javaToThrift(100));
    ObjectResultDataset expected = new ObjectResultDataset(dataset);
    ComplexTObject complex = ComplexTObject.fromJavaObject(expected);
    Map<Long, Map<String, Object>> actual = complex.getJavaObject();
    expected.forEach((key, value) -> {
        Assert.assertTrue(actual.containsKey(key));
        Assert.assertTrue(actual.containsValue(value));
    });
}