@Test
public void testEquals() {

    UcteNodeCode node1 = new UcteNodeCode(UcteCountryCode.FR, "SUBST", UcteVoltageLevelCode.VL_380, '1');
    UcteNodeCode node2 = new UcteNodeCode(UcteCountryCode.FR, "SUBST", UcteVoltageLevelCode.VL_380, '1');
    new EqualsTester()
            .addEqualityGroup(node1, node2)
            .testEquals();
    node2.setBusbar(null);
    new EqualsTester()
            .addEqualityGroup(node1)
            .addEqualityGroup(node2)
            .testEquals();
}