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

public void testGetRolesOfUser() {
    PowerMockito.stub(PowerMockito.method(DeviceMgtAPIUtils.class, "getUserStoreManager"))
            .toReturn(this.userStoreManager);
    Response response = userManagementService.getRolesOfUser(TEST2_USERNAME, null);
    Assert.assertEquals(response.getStatus(), Response.Status.NOT_FOUND.getStatusCode(),
            "Roles of a non-existing user was successfully retrieved");
    response = userManagementService.getRolesOfUser(TEST_USERNAME, null);
    Assert.assertEquals(response.getStatus(), Response.Status.OK.getStatusCode(),
            "Retrieval of roles of a existing user failed.");
}