@Test
public void considersMissingNodes() {

    TestAUGBuilder targetBuilder = buildAUG().withActionNode("a");
    TestAUGBuilder patternBuilder = extend(targetBuilder).withActionNode("b");
    Overlap violation = buildOverlap(patternBuilder, targetBuilder).withNode("a", "a").build();
    ViolationWeightFunction weightFunction = new OverlapWeightFunction();
    double weight = weightFunction.getWeight(violation, null, null);
    assertThat(weight, is(0.5));
}