@Test(description = "This test case tests deleting a profile",
      dependsOnMethods = "testDeleteProfileThrowingIllegalTransactionStateException",
      expectedExceptions = {ProfileManagementException.class})

public void testDeleteProfile() throws Exception {
    profileManager.deleteProfile(profile1);
    Profile savedProfile = profileManager.getProfile(profile1.getProfileId());
}