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

    FeatureDAO featureDAO = mock(FeatureDAO.class);
    when(featureDAO.getAllProfileFeatures()).thenThrow(new FeatureManagerDAOException());
    testThrowingException(profileManager, profile1, p -> profileManager.getAllProfiles(), "featureDAO", featureDAO,
                          FeatureManagerDAOException.class);
}