@Test(description = "This test case tests handling ProfileManagerDAOException when retrieving all profiles",
      dependsOnMethods = "testGetAllProfiles")
public void testGetAllProfilesThrowingProfileManagerDAOException() throws Exception {

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