@Test(description = "This method tests the behaviour of getUserCount method of UserManagementService",
        dependsOnMethods = {"testRemoveUser"})

public void testGetUserCount() throws UserStoreException {
    PowerMockito.stub(PowerMockito.method(DeviceMgtAPIUtils.class, "getUserRealm")).toReturn(userRealm);
    PowerMockito.stub(PowerMockito.method(DeviceMgtAPIUtils.class, "getUserStoreCountRetrieverService"))
            .toReturn(null);
    PowerMockito.stub(PowerMockito.method(DeviceMgtAPIUtils.class, "getUserStoreManager"))
            .toReturn(this.userStoreManager);
    Response response = userManagementService.getUserCount();
    Assert.assertEquals(response.getStatus(), Response.Status.OK.getStatusCode(), "User count retrieval failed");
}