@Test
public void getAsInt() {

    AbstractNode<N> node = parentWithChildInt(42);
    assertThat(node.getAsInt("child")).isEqualTo(42);
    node = parentWithChildInt(Integer.MAX_VALUE);
    assertThat(node.getAsInt("child")).isEqualTo(Integer.MAX_VALUE);
    node = parentWithChildInt(Integer.MIN_VALUE);
    assertThat(node.getAsInt("child")).isEqualTo(Integer.MIN_VALUE);
    assertThat(node.getAsInt("unknownChild", 0)).isEqualTo(0);
}