@Override
    public int hashCode() {
        int result = type.hashCode();
        result = 31 * result + newState.hashCode();
        return result;
    }
@Test
    public void testHashCode() {
        assertEquals(clusterStateChange.hashCode(), clusterStateChange.hashCode());
        assertEquals(clusterStateChange.hashCode(), clusterStateChangeSameAttributes.hashCode());

        assumeDifferentHashCodes();
        assertNotEquals(clusterStateChange.hashCode(), clusterStateChangeOtherType.hashCode());
        assertNotEquals(clusterStateChange.hashCode(), clusterStateChangeOtherNewState.hashCode());
    }