@Test(description =
        "This method tests  getting details of an activity with an admin user with an existing"
                + " activity Id")
public void testGetActivitiesWithValidAdminUserWithValidId() throws OperationManagementException {

    PowerMockito.stub(PowerMockito.method(DeviceMgtAPIUtils.class, "isAdmin")).toReturn(true);
    PowerMockito.stub(PowerMockito.method(DeviceMgtAPIUtils.class, "getDeviceManagementService"))
            .toReturn(this.deviceManagementProviderService);
    Mockito.when(this.deviceManagementProviderService.getOperationByActivityId(TEST_ACTIVITY_ID))
            .thenReturn(activity);
    Response response = this.activityInfoProviderService.getActivity(TEST_ACTIVITY_ID, IF_MODIFIED_SINCE);
    Assert.assertNotNull(response);
    Assert.assertEquals(response.getStatus(), Response.Status.OK.getStatusCode());
    Mockito.reset(this.deviceManagementProviderService);
}