@Test
public void testHashCode() {

    SplitIndex index1a = SplitIndex.valueOf(4, false);
    SplitIndex index1b = SplitIndex.valueOf(4, false);
    SplitIndex index2 = SplitIndex.valueOf(5, false);
    SplitIndex index3 = SplitIndex.valueOf(4, true);
    
    assertEquals(index1a.hashCode(), index1b.hashCode());
    
    // Not necessary, but hash code shouldn't be too weak 
    assertTrue(index1a.hashCode() != index2.hashCode());
    assertTrue(index1a.hashCode() != index3.hashCode());
}