### Question:
SimpleQuery extends Query { @Override public QueryType queryType() { return QueryType.SIMPLE; } SimpleQuery(final String query); String getQuery(); @Override void accept(final QueryVisitor visitor); @Override QueryType queryType(); @Override int hashCode(); @Override boolean equals(final Object obj);  }### Answer:
@Test public void shouldBeSimpleQuery() { final SimpleQuery query = new SimpleQuery(Randoms.randomString()); assertEquals(QueryType.SIMPLE, query.queryType()); }