@Test
public void considersNodeImportance() {

    TestAUGBuilder pattern = buildAUG().withActionNodes("A", "B").withEdge("A", ORDER, "B");
    Node nodeB = pattern.getNode("B");
    TestAUGBuilder target = buildAUG().withActionNode("A");
    Overlap violation = buildOverlap(pattern, target).withNode("A").build();
    double weightWithEqualImportance = getWeight(violation, node -> 1);
    double weightWithMissingNodeDoubleImportance = getWeight(violation, node -> node == nodeB ? 2 : 1);
    assertThat(weightWithEqualImportance, is(lessThan(weightWithMissingNodeDoubleImportance)));
}