@Test
public void configurePresentationSetTextDoesntMangleDeviceName() {

  // Arrange
  Device apiQ64Google = new VirtualDevice.Builder()
    .setName("apiQ_64_Google")
    .setKey(new Key("apiQ_64_Google"))
    .setAndroidDevice(Mockito.mock(AndroidDevice.class))
    .build();
  Mockito.when(myComboBoxAction.getDevices(myProject)).thenReturn(Collections.singletonList(apiQ64Google));
  // Act
  AnAction action = SelectDeviceAction.newSelectDeviceAction(myComboBoxAction, myProject, apiQ64Google);
  // Assert
  assertEquals("apiQ_64_Google", action.getTemplatePresentation().getText());
}