@Test
public void shouldReturnCorrectChildCount() {

    parent = new AstNode("parent");
    assertThat(parent.getChildCount(), is(0));
    for (int i = 0; i != 10; ++i) {
        new AstNode(parent, "child");
        assertThat(parent.getChildCount(), is(i + 1));
    }
}