### Question:
RightClickResetter implements MouseClickClosure { @Override public void mouseClicked(MouseButton button, MetaKey key, Coordinate coordinate, int clickCount) { if (button != MouseButton.Secondary) { return; } if (key != MetaKey.CTRL) { return; } polygonPanel.resetTransformation(); new DefaultScaler(polygonPanel).scale(); } RightClickResetter(PolygonPanel polygonPanel); @Override void mouseClicked(MouseButton button, MetaKey key, Coordinate coordinate, int clickCount);  }### Answer:
@Test public void resetsTransformationAndZoomsOutALittleOnRightClickWithCtrl() throws Exception { resetter.mouseClicked(MouseButton.Secondary, MetaKey.CTRL, AnyCoordinate,1); InOrder inOrder = Mockito.inOrder(panel); inOrder.verify(panel).resetTransformation(); inOrder.verify(panel).scale(0.75); }
@Test public void doesNothingOnClickWithoutCtrl() throws Exception { resetter.mouseClicked(MouseButton.Secondary, MetaKey.NONE, AnyCoordinate, 1); verifyZeroInteractions(panel); }
@Test public void doesNothingOnLeftClickWithCtrl() throws Exception { resetter.mouseClicked(MouseButton.Primary, MetaKey.CTRL, AnyCoordinate, 2); verifyZeroInteractions(panel); }