@Test(description = "This method tests getting details of list of given activity IDs")
public void testGetActivitiesWithActivityIdList() 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.getOperationByActivityIds(idList)).thenReturn(
            activities);
    Response response = this.activityInfoProviderService.getActivities(activityList);
    Assert.assertNotNull(response);
    Assert.assertEquals(response.getStatus(), Response.Status.OK.getStatusCode());
    Mockito.reset(this.deviceManagementProviderService);
}