@Test(description = "This test case tests updating profile",
      dependsOnMethods = "testAddProfile")
public void testUpdateProfile() throws Exception {

    String newProfileName = "Updated Test Profile";
    Profile savedProfile = profileManager.getProfile(profile1.getProfileId());
    savedProfile.setProfileName(newProfileName);
    Profile updateProfile = profileManager.updateProfile(savedProfile);
    Assert.assertEquals(updateProfile.getProfileName(), newProfileName);
}