### Question:
SqlQueryParser implements QueryParser { protected SelectorName parseSelectorName( TokenStream tokens, TypeSystem typeSystem ) { return new SelectorName(parseName(tokens, typeSystem)); }  String getLanguage(); @Override String toString(); @Override boolean equals( Object obj ); QueryCommand parseQuery( String query,
                                    TypeSystem typeSystem ); static final String LANGUAGE; }### Answer:
@Test public void shouldParseSelectorNameFromUnquotedString() { assertThat(parser.parseSelectorName(tokens("name"), typeSystem), is(selectorName("name"))); }
@Test public void shouldParseSelectorNameFromQuotedString() { assertThat(parser.parseSelectorName(tokens("'name'"), typeSystem), is(selectorName("name"))); }
@Test( expected = ParsingException.class ) public void shouldFailInParseSelectorNameIfNoMoreTokens() { parser.parseSelectorName(tokens(" "), typeSystem); }