@Test
public void setModel() {

  // Arrange
  Device device = new PhysicalDevice.Builder()
    .setName("LGE Nexus 5X")
    .setKey(new Key("00fff9d2279fa601"))
    .setAndroidDevice(Mockito.mock(AndroidDevice.class))
    .build();
  TableModel model = new SelectDeploymentTargetsDialogTableModel(Collections.singletonList(device), table);
  // Act
  table.setModel(model);
  // Assert
  // @formatter:off
  Object data = Arrays.asList(
    Arrays.asList("",    "Type",           "Device"),
    Arrays.asList(false, device.getIcon(), "LGE Nexus 5X"));
  // @formatter:on
  assertEquals(data, table.getData());
}