@Test
public void deviceNameRendering2() throws Exception {

  String serial = "123";
  IDevice d = createDevice(true, "Avdname", manufacturer, model, buildVersion, apiLevel, serial, IDevice.DeviceState.BOOTLOADER);
  DeviceNameProperties deviceNameProperties = new DeviceNameProperties(model, manufacturer, buildVersion, apiLevel);
  SimpleColoredText target = new SimpleColoredText();
  DeviceRenderer.renderDeviceName(d, deviceNameProperties, target, false);
  String name = target.toString();
  assertFalse(StringUtil.containsIgnoreCase(name, "Nexus 4"));
  assertTrue(StringUtil.containsIgnoreCase(name, "Avdname"));
  assertTrue(StringUtil.containsIgnoreCase(name, IDevice.DeviceState.BOOTLOADER.toString()));
  assertTrue(StringUtil.containsIgnoreCase(name, serial));
}