@Test
public void setSelectedImageIsPressed() {

  ImageView image = mockImage(new int[]{State.PRESSED.getIntValue()});
  ToggleAction action = new ToggleStateAction(State.PRESSED, mockSurface(image));
  action.setSelected(new AnActionEvent(null, dataId -> null, "sdsd", action.getTemplatePresentation(), ActionManager.getInstance(), -1), false);
  Mockito.verify(image).setImageState(new int[0], false);
}