@Test
public void testListBean(){

    List<Bean> beans = admin.list(GRANDFATHER_SCHEMA_NAME);
    assertThat(beans.size(), is(0));
    admin.create(grandfathersBeans);
    beans = admin.list(GRANDFATHER_SCHEMA_NAME);
    assertThat(beans.size(), is(3));
    assertReflectionEquals(grandfathersBeans, beans, LENIENT_ORDER);
    try {
        admin.list("bogus");
        fail("Cannot list unregistered schema");
    } catch (AbortRuntimeException e) {
        assertThat(e.getEvent().getCode(), is(CFG101));
    }
}