@Test
public void getTextDeviceHasSnapshot() {

  // Arrange
  Snapshot snapshot = new Snapshot(FileSystems.getDefault().getPath("snap_2019-09-27_15-48-09"), "Snapshot");
  Device device = new VirtualDevice.Builder()
    .setName("Pixel 3 API 29")
    .setKey(new Key("Pixel_3_API_29", snapshot))
    .setAndroidDevice(Mockito.mock(AndroidDevice.class))
    .setSnapshot(snapshot)
    .build();
  // Act
  Object text = DeviceAndSnapshotComboBoxAction.getText(device, Collections.singletonList(device), true);
  // Assert
  assertEquals("Pixel 3 API 29 - Snapshot", text);
}