@Test
public void shouldParseName() {

    assertThat(parser.parseNameTest(tokenize("*")), is(wildcard()));
    assertThat(parser.parseNameTest(tokenize("*:*")), is(wildcard()));
    assertThat(parser.parseNameTest(tokenize("*:name")), is(nameTest(null, "name")));
    assertThat(parser.parseNameTest(tokenize("name:*")), is(nameTest("name", null)));
    assertThat(parser.parseNameTest(tokenize("abc")), is(nameTest("abc")));
    assertThat(parser.parseNameTest(tokenize("abc:def")), is(nameTest("abc", "def")));
}