@Test
public void updatePresentationConfigurationIsntAndroidRunConfigurationNorAndroidTestRunConfigurationButDeploysToLocalDevice() {

  // Arrange
  RunConfigurationBase configuration = Mockito.mock(RunConfigurationBase.class);
  Mockito.when(configuration.getUserData(DeviceAndSnapshotComboBoxAction.DEPLOYS_TO_LOCAL_DEVICE)).thenReturn(true);
  RunnerAndConfigurationSettings settings = Mockito.mock(RunnerAndConfigurationSettings.class);
  Mockito.when(settings.getConfiguration()).thenReturn(configuration);
  // Act
  DeviceAndSnapshotComboBoxAction.updatePresentation(myPresentation, settings);
  // Assert
  assertNull(myPresentation.getDescription());
  assertTrue(myPresentation.isEnabled());
}