@Test(description = "Testing getting effective policy of a device")
public void testGetEffectivePolicyOfDevice() throws PolicyManagementException {

    PolicyManagerService policyManagerService = Mockito.mock(PolicyManagerService.class, Mockito.RETURNS_MOCKS);
    PowerMockito.stub(PowerMockito.method(DeviceMgtAPIUtils.class, "getPolicyManagementService"))
            .toReturn(policyManagerService);
    Response response = this.deviceManagementService
            .getEffectivePolicyOfDevice(TEST_DEVICE_TYPE, UUID.randomUUID().toString(), null);
    Assert.assertEquals(response.getStatus(), Response.Status.OK.getStatusCode(),
            "Expects to return HTTP 200 when retrieving effective policy is successful");
}