@Test(description = "This test case tests handling ProfileManagerDAOException when retrieving profile",
      dependsOnMethods = "testGetProfile")
public void testGetProfileThrowingProfileManagerDAOException() throws Exception {

    ProfileDAO profileDAO = mock(ProfileDAOImpl.class);
    when(profileDAO.getProfile(anyInt())).thenThrow(new ProfileManagerDAOException());
    testThrowingException(profileManager, profile1, p -> profileManager.getProfile(((Profile) p).getProfileId()),
                          "profileDAO",
                          profileDAO,
                          ProfileManagerDAOException.class);
}