@Test
public void updateDeviceDoesntHaveScreenRecord() {

  IDevice device = Mockito.mock(IDevice.class);
  Mockito.when(device.isOnline()).thenReturn(true);
  Mockito.when(myContext.getSelectedDevice()).thenReturn(device);
  new ScreenRecorderAction(myRule.getProject(), myContext, myFeatures).update(myEvent);
  assertFalse(myPresentation.isEnabled());
  assertEquals("Screen Record", myPresentation.getText());
}