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

    FeatureDAO featureDAO = mock(FeatureDAO.class);
    when(featureDAO.getFeaturesForProfile(anyInt())).thenThrow(new FeatureManagerDAOException());
    testThrowingException(profileManager, profile1, p -> profileManager.getProfile(((Profile) p).getProfileId()),
                          "featureDAO",
                          featureDAO,
                          FeatureManagerDAOException.class);
}