@Test
public void testProperties() {

    final DanglingLine dl1 = createDanglingLine(noEquipNetwork, "vl1", "dl1", "dl", 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, "code", "busA");
    dl1.setProperty("ucteCode", dl1.getUcteXnodeCode()); // test equals property
    dl1.setProperty("id", dl1.getId()); // test not equals property
    dl1.setProperty("network", "noEquipNetwork"); // test empty property
    dl1.setProperty("vl", ""); // test empty property
    final DanglingLine dl2 = createDanglingLine(noEquipNetwork, "vl2", "dl2", "dl", 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, "code", "busB");
    dl2.setProperty("ucteCode", dl2.getUcteXnodeCode()); // test equals property
    dl2.setProperty("id", dl2.getId()); // test not equals property
    dl2.setProperty("network", ""); // test empty property
    dl2.setProperty("vl", "vl2"); // test empty property
    mergingView.merge(noEquipNetwork);
    final Line line = mergingView.getLine("dl1 + dl2");
    final MergedLine mergedLine = (MergedLine) line;
    assertEquals("dl", mergedLine.getOptionalName().orElse(null));
    assertEquals("dl", mergedLine.getNameOrId());
    assertTrue(mergedLine.hasProperty());
    assertTrue(mergedLine.hasProperty("ucteCode"));
    assertEquals(3, mergedLine.getPropertyNames().size());
    mergedLine.setProperty("key", "value");
    assertEquals("value", mergedLine.getProperty("key"));
    assertEquals("defaultValue", mergedLine.getProperty("noKey", "defaultValue"));
}