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

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