@Test
public void toMetaFieldInfoArrayUnwrappingAtomicReference() throws Exception {

    TestRef ref = new TestRef();
    MetaFieldInfo[] fields = MetaFieldUtil.toMetaFieldInfoArray(ref);
    // won't be able unwrap anything if the reference type is null
    Assert.assertEquals(1, fields.length);
    ref.setPerson(new Person());
    fields = MetaFieldUtil.toMetaFieldInfoArray(ref);
    // should be unwrapped now
    Assert.assertEquals(6, fields.length);
    //for (MetaFieldInfo field : fields) {
    //    logger.debug("field name=" + field.name + ", value=" + field.value + ", description=" + field.description);
    //}
}