@Test
public void shouldParseDocumentTest() {

    DocumentTest result = parser.parseDocumentTest(tokenize("document-node(element(foo:bar))"));
    assertThat(result, is(notNullValue()));
    assertThat(result.getElementTest().getElementName(), is(nameTest("foo", "bar")));
    assertThat(result.getElementTest().getTypeName(), is(wildcard()));
    assertThat(result.getSchemaElementTest(), is(nullValue()));
    result = parser.parseDocumentTest(tokenize("document-node(schema-element(foo))"));
    assertThat(result, is(notNullValue()));
    assertThat(result.getSchemaElementTest().getElementDeclarationName(), is(nameTest("foo")));
    assertThat(result.getElementTest(), is(nullValue()));
}