@Test(description = "This test case tests the getDevcie method of the DeviceTypeManager", dependsOnMethods =
        {"testEnrollDevice"})

public void testGetDevice() throws DeviceManagementException {
    DeviceIdentifier existingDeviceIdntifier = new DeviceIdentifier(sampleDevice2.getDeviceIdentifier(),
            androidDeviceType);
    Assert.assertNull(androidDeviceTypeManager.getDevice(nonExistingDeviceIdentifier),
            "Non existing sampleDevice was retrieved");
    Assert.assertNotNull(androidDeviceTypeManager.getDevice(existingDeviceIdntifier),
            "Existing sampleDevice was not retrieved");
    Device customDevice1 = customDeviceTypeManager
            .getDevice(new DeviceIdentifier(customDeviceType, customDeviceType));
    Assert.assertEquals(customDevice1.getProperties().size(), 2,
            "GetDevice call" + " failed in custom deviceTypeManager");
}