@Test
public void testListObjects() {

    Collection<Parent> objects = admin.list(Parent.class);
    assertThat(objects.size(), is(0));
    admin.createObjects(parents);
    objects = admin.list(Parent.class);
    assertThat(objects.size(), is(3));
    assertReflectionEquals(parentBeans, toBeans(objects.toArray(new Object[objects.size()])), LENIENT_ORDER);
    try {
        admin.list(String.class);
        fail("Cannot list unregistered schema");
    } catch (AbortRuntimeException e) {
        assertThat(e.getEvent().getCode(), is(CFG101));
    }
}