@Test
public void testGetFields() throws Exception {

    JavaBeanReflection jbr = JavaBeanReflection.forType(Root.class);
    Set<String> fieldNames = jbr.getFields().stream().map(Field::getName).collect(Collectors.toSet());
    assertThat(fieldNames).contains("name", "child");
}