@Test(description = "This test case tests the enrollment of the device")
public void testEnrollDevice() throws DeviceManagementException {

    Assert.assertTrue(androidDeviceTypeManager.enrollDevice(sampleDevice1), "New android device enrollment failed");
    Assert.assertFalse(androidDeviceTypeManager.enrollDevice(sampleDevice2),
            "Modification to existing android " + "device enrollment failed");
    Assert.assertTrue(customDeviceTypeManager.enrollDevice(customDevice), "Custom device type enrollment failed.");
    List<Device.Property> properties = customDevice.getProperties();
    Device.Property property = new Device.Property();
    property.setName(Utils.TEST_STRING);
    property.setValue(Utils.TEST_STRING);
    properties.add(property);
    customDevice.setProperties(properties);
    Assert.assertFalse(customDeviceTypeManager.enrollDevice(customDevice),
            "Custom device type re-enrollment " + "failed.");
}