@Test
public void testHashCode() {

    UcteNodeCode node1 = new UcteNodeCode(UcteCountryCode.FR, "AAAAA", UcteVoltageLevelCode.VL_380, '1');
    UcteNodeCode node2 = new UcteNodeCode(UcteCountryCode.BE, "BBBBB", UcteVoltageLevelCode.VL_380, '2');
    UcteElementId id1 = new UcteElementId(node1, node2, '3');
    UcteElementId id2 = new UcteElementId(node2, node1, '3');
    UcteElementId id3 = new UcteElementId(node1, node2, '2');
    new EqualsTester()
            .addEqualityGroup(id1)
            .addEqualityGroup(id2)
            .addEqualityGroup(id3)
            .testEquals();
    id3.setOrderCode('3');
    new EqualsTester()
            .addEqualityGroup(id1, id3)
            .addEqualityGroup(id2)
            .testEquals();
}