@Test
public void descendingMediaTypeIteratorThrowsExceptionWhenHasNoMoreElements() {

    Iterator<MediaType> iterator = MediaTypeHelper.createDescendingMediaTypeIterator(new MediaType("*", "*"));
    iterator.next();
    assertFalse(iterator.hasNext());
    thrown.expect(NoSuchElementException.class);
    iterator.next();
}