### Question:
ForceNoBulkScoringQuery extends Query { @Override public int hashCode() { return Objects.hash(inner); } ForceNoBulkScoringQuery(Query inner); @Override Query rewrite(IndexReader reader); @Override boolean equals(Object o); @Override int hashCode(); Query getWrappedQuery(); @Override Weight createWeight(IndexSearcher searcher, boolean needsScores, float boost); @Override String toString(String s);  }### Answer:
@Test public void testEquality() { TermQuery tq1 = new TermQuery(new Term("f", "t")); TermQuery tq2 = new TermQuery(new Term("f", "t2")); TermQuery tq3 = new TermQuery(new Term("f", "t2")); assertThat(new ForceNoBulkScoringQuery(tq1)) .isEqualTo(new ForceNoBulkScoringQuery(tq1)); assertThat(new ForceNoBulkScoringQuery(tq1)) .isNotEqualTo(new ForceNoBulkScoringQuery(tq2)); assertThat(new ForceNoBulkScoringQuery(tq2)) .isEqualTo(new ForceNoBulkScoringQuery(tq3)); assertThat(new ForceNoBulkScoringQuery(tq2).hashCode()) .isEqualTo(new ForceNoBulkScoringQuery(tq3).hashCode()); assertThat(new ForceNoBulkScoringQuery(tq1).hashCode()) .isNotEqualTo(new ForceNoBulkScoringQuery(tq2).hashCode()); }