@Test(description = "This method tests the behaviour of getNotifications method under different conditions")
public void testGetNotifications() throws NotificationManagementException {

    PowerMockito.stub(PowerMockito.method(DeviceMgtAPIUtils.class, "getNotificationManagementService"))
            .toReturn(this.notificationManagementService);
    Response response = notificationManagement.getNotifications("NEW", "test", 0, 10);
    Assert.assertEquals(response.getStatus(), Response.Status.OK.getStatusCode(), "Notification retrieval failed");
    response = notificationManagement.getNotifications(null, "test", 0, 10);
    Assert.assertEquals(response.getStatus(), Response.Status.OK.getStatusCode(), "Notification retrieval failed");
    Mockito.reset(this.notificationManagementService);
    Mockito.doThrow(new NotificationManagementException()).when(notificationManagementService)
            .getAllNotifications(Mockito.any());
    response = notificationManagement.getNotifications(null, "test", 0, 10);
    Assert.assertEquals(response.getStatus(), Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(),
            "Notification retrieval succeeded with issues in NotificationManagement OSGI service");
    Mockito.reset(this.notificationManagementService);
}