@Test(description = "Testing search devices")
public void testSearchDevices() {

    SearchManagerService searchManagerService = Mockito.mock(SearchManagerServiceImpl.class, Mockito.RETURNS_MOCKS);
    PowerMockito.stub(PowerMockito.method(DeviceMgtAPIUtils.class, "getSearchManagerService"))
            .toReturn(searchManagerService);
    Response response = this.deviceManagementService
            .searchDevices(10, 5, new SearchContext());
    Assert.assertEquals(response.getStatus(), Response.Status.OK.getStatusCode(),
            "Expects to return HTTP 200 when the search is successful");
}