@Test
public void shouldCreateChildNode() {

    String name = "myNodeName";
    nodeFactory.node(name, rootNode, StandardDdlLexicon.TYPE_CREATE_TABLE_STATEMENT);
    assertThat(rootNode.getChildCount(), is(1));
    assertEquals(rootNode.getProperty(JcrConstants.JCR_MIXIN_TYPES), StandardDdlLexicon.STATEMENTS_CONTAINER);
    assertEquals(rootNode.getChild(0).getProperty(JcrConstants.JCR_MIXIN_TYPES),
                 StandardDdlLexicon.TYPE_CREATE_TABLE_STATEMENT);
    assertThat(rootNode.getChild(0).getName(), is(name));
}