@Test
public void calculatesViolationSupportWeight_anEqualViolation() {

    TestAUGBuilder anotherTarget = buildAUG().withActionNode("a");
    Overlap anEqualViolation = buildOverlap(patternBuilder, anotherTarget).withNode("a", "a").build();
    overlaps.addViolation(anEqualViolation);
    ViolationWeightFunction weightFunction = new ViolationSupportWeightFunction();
    double weight = weightFunction.getWeight(violation, overlaps, null);
    assertThat(weight, is(0.5));
}