@Test
public void shouldParseKindTest() {

    assertThat(parser.parseKindTest(tokenize("node()")), is(instanceOf(AnyKindTest.class)));
    assertThat(parser.parseKindTest(tokenize("comment()")), is(instanceOf(CommentTest.class)));
    assertThat(parser.parseKindTest(tokenize("text()")), is(instanceOf(TextTest.class)));
    assertThat(parser.parseKindTest(tokenize("document-node(element(foo:bar))")), is(instanceOf(DocumentTest.class)));
    assertThat(parser.parseKindTest(tokenize("element(foo:bar)")), is(instanceOf(ElementTest.class)));
    assertThat(parser.parseKindTest(tokenize("schema-element(foo:bar)")), is(instanceOf(SchemaElementTest.class)));
    assertThat(parser.parseKindTest(tokenize("attribute(foo:bar)")), is(instanceOf(AttributeTest.class)));
    assertThat(parser.parseKindTest(tokenize("schema-attribute(foo:bar)")), is(instanceOf(SchemaAttributeTest.class)));
}