@Test(description = "This method tests getting details of an activity for a given device")
public void testGetActivities() 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.getFilteredActivities(OPERATION_CODE, OFFSET, LIMIT))
            .thenReturn(activities);
    Response response = this.activityInfoProviderService.getActivities(OPERATION_CODE, OFFSET, LIMIT);
    Assert.assertNotNull(response);
    Assert.assertEquals(response.getStatus(), Response.Status.OK.getStatusCode());
    Mockito.reset(this.deviceManagementProviderService);
}