    @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());
    }