@Test (description = "This test case tests the updateDeviceInfo method")
public void testUpdateDeviceInfo() throws DeviceManagementException {

    DeviceIdentifier existingDeviceIdentifier = new DeviceIdentifier(sampleDevice2.getDeviceIdentifier(),
            androidDeviceType);
    Assert.assertFalse(androidDeviceTypeManager.updateDeviceInfo(nonExistingDeviceIdentifier, sampleDevice1),
            "Non-existing device was updated");
    Assert.assertTrue(androidDeviceTypeManager.updateDeviceInfo(existingDeviceIdentifier, sampleDevice1),
            "Existing device update failed");
}