### Question:
OffsetAction implements Action { @Override public void perform(final WebElement target) { delegate.perform(target.getLocation().moveBy(offset.x, offset.y)); } OffsetAction(final int x, final int y, final AbsolutePointAction delegate); @Override void perform(final WebElement target);  }### Answer:
@Test public void testPerformShouldDelegateWithOffsetFromElementTopLeft() { final AbsolutePointAction pointAction = mock(AbsolutePointAction.class); new OffsetAction(x, y, pointAction).perform(element); then(pointAction).should().perform(expectedPoint); }