@Test(description = "This test case tests handling FeatureManagerDAOException when retrieving all profiles of a " +
        "device type",
      dependsOnMethods = "testGetProfilesOfDeviceTypeThrowingProfileManagerDAOException")
public void testGetProfilesOfDeviceTypeThrowingFeatureManagerDAOException() throws Exception {

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