@Test public void checkApplyElementMutationDelegatesToWrapped() { final Shape shape = mock(Shape.class); final Element candidate = mock(Element.class); final boolean applyPosition = true; final boolean applyProperties = false; final MutationContext mutationContext = mock(MutationContext.class); proxy.applyElementMutation(shape, candidate, applyPosition, applyProperties, mutationContext); verify(wrapped).applyElementMutation(eq(shape), eq(candidate), eq(applyPosition), eq(applyProperties), eq(mutationContext)); proxy.applyElementMutation(candidate, mutationContext); verify(wrapped).applyElementMutation(eq(candidate), eq(mutationContext)); proxy.applyElementMutation(candidate, applyPosition, applyProperties, mutationContext); verify(wrapped).applyElementMutation(eq(candidate), eq(applyPosition), eq(applyProperties), eq(mutationContext)); }