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

    DeviceIdentifier deviceIdentifier = new DeviceIdentifier(customDeviceType, customDeviceType);
    Device customDevice = customDeviceTypeManager
            .getDevice(deviceIdentifier);
    List<Device.Property> list = customDevice.getProperties();
    Assert.assertEquals(customDevice.getProperties().size(), 2,
            "GetDevice call" + " failed in custom deviceTypeManager");
    Device.Property property = list.get(0);
    property.setValue(updatedDeviceTypePropertyValue);
    customDeviceTypeManager.updateDeviceProperties(deviceIdentifier, list);
    customDevice = customDeviceTypeManager
            .getDevice(deviceIdentifier);
    Assert.assertEquals(customDevice.getProperties().get(0).getValue(), updatedDeviceTypePropertyValue,
            "GetDevice call" + " failed in custom deviceTypeManager");
}