@Test
public void getName_emulatorWithAvdName() {

  IDevice emulatorWithNoAvdName = createMockRunningEmulator("My Pixel");
  assertThat(new ConnectedAndroidDevice(emulatorWithNoAvdName, null).getName()).isEqualTo("Google Pixel [My Pixel]");
}