@Test
public void update() {

  // Arrange
  RunnerAndConfigurationSettings settings = Mockito.mock(RunnerAndConfigurationSettings.class);
  Mockito.when(settings.getType()).thenReturn(AndroidRunConfigurationType.getInstance());
  Device device = new VirtualDevice.Builder()
    .setName("Pixel 3 API 29")
    .setKey(new Key("Pixel_3_API_29"))
    .setAndroidDevice(Mockito.mock(AndroidDevice.class))
    .build();
  myAction = new RunOnMultipleDevicesAction(project -> settings, project -> Collections.singletonList(device));
  Mockito.when(myEvent.getProject()).thenReturn(myRule.getProject());
  // Act
  myAction.update(myEvent);
  // Assert
  assertTrue(myPresentation.isEnabled());
}