@Test
public void withOtherViolationOfSamePattern() {

    overlaps.addViolation(someOverlap(aPattern, someAUG()));
    ViolationWeightFunction weightFunction = new PatternViolationsWeightFunction();
    double weight = weightFunction.getWeight(violation, overlaps, null);
    assertThat(weight, is(0.5));
}