NoneCondition extends Condition { @Override public Query doQuery(Schema schema) { return new BooleanQuery.Builder().build(); } NoneCondition(Float boost); @Override Query doQuery(Schema schema); Set<String> postProcessingFields(); @Override MoreObjects.ToStringHelper toStringHelper();  }
@Test public void testQuery() { Schema schema = schema().build(); NoneCondition condition = new NoneCondition(0.7f); Query query = condition.doQuery(schema); assertNotNull("Query is not built", query); assertEquals("Query type is wrong", BooleanQuery.class, query.getClass()); }