@Test
public void getObject() {

    AbstractNode<N> node = parentWithChildObject(pair("A", "1"));
    assertThat(node.getObject("child").getAsString("A")).isEqualTo("1");
    assertThat(node.getObject("unknownChild", null)).isNull();
    @SuppressWarnings("unchecked") N def = (N) emptyNode();
    assertThat(node.getObject("unknownChild", def)).isSameAs(def);
}