@Test
public void testSetObject() {

    try {
        admin.setObject("");
    } catch (AbortRuntimeException e) {
        // don't know if schema or instances were invalid from
        // a HTTP 404 response
        assertThat(e.getEvent().getCode(), is(CFG090));
    }
    assertFalse(admin.get(Grandfather.class, "g1").isPresent());
    admin.createObject(g1);
    g1 = new Grandfather("g1");
    g1.setProp1("testSetObject");
    admin.setObject(g1);
    Optional<Grandfather> optional = admin.get(Grandfather.class, "g1");
    assertTrue(optional.isPresent());
    assertThat(optional.get().getProp1(), is("testSetObject"));
    assertThat(optional.get().getProp9(), is(0L));
    assertNull(optional.get().getProp2());
}