@Test(description = "This method tests the updateUser method of UserManagementService", dependsOnMethods =
        {"testGetUser"})

public void testUpdateUser() throws UserStoreException {
    PowerMockito.stub(PowerMockito.method(DeviceMgtAPIUtils.class, "getUserStoreManager"))
            .toReturn(this.userStoreManager);
    Response response = userManagementService.updateUser(TEST2_USERNAME, null, null);
    Assert.assertEquals(response.getStatus(), Response.Status.NOT_FOUND.getStatusCode(),
            "Non-existing user was successfully updated");
    String[] roles = { "Internal/everyone", DEFAULT_DEVICE_USER };
    Mockito.doReturn(roles).when(userStoreManager).getRoleListOfUser(TEST_USERNAME);
    Mockito.doNothing().when(userStoreManager).updateRoleListOfUser(Mockito.any(), Mockito.any(), Mockito.any());
    Mockito.doNothing().when(userStoreManager).setUserClaimValues(Mockito.any(), Mockito.any(), Mockito.any());
    response = userManagementService.updateUser(TEST_USERNAME, null, getUserInfo());
    Assert.assertEquals(response.getStatus(), Response.Status.OK.getStatusCode(), "Updating the user info failed");
}