@Test
    void requireThatEqualsIsImplemented() {
        RangeEdgePartition lhs = new RangeEdgePartition("foo=10", 10, 5, 10);
        assertEquals(lhs, lhs);
        assertNotEquals(lhs, new Object());

        RangeEdgePartition rhs = new RangeEdgePartition("foo=20", 20, 0, 0);
        assertNotEquals(lhs, rhs);
        rhs = new RangeEdgePartition("foo=10", 10, 5, 10);
        assertEquals(lhs, rhs);
        assertNotEquals(lhs, new RangeEdgePartition("foo=10", 10, 5, 11));
        assertNotEquals(lhs, new RangeEdgePartition("foo=10", 10, 6, 10));
        assertNotEquals(lhs, new RangeEdgePartition("foo=10", 11, 5, 10));
        assertNotEquals(lhs, new RangeEdgePartition("foo=11", 10, 5, 10));
    }
@author <a href="mailto:magnarn@yahoo-inc.com">Magnar Nedland</a>
predicate-search-core/src/test/java/com/yahoo/document/predicate/RangeEdgePartitionTest.java