### Question:
AlternativeProvider implements Iterator<Alternative> { @Override public void remove() { throw new UnsupportedOperationException("Alternative removal is not supported"); } AlternativeProvider(List<MediaType> mediaTypes, List<CharacterEncoding> characterEncodings, List<Language> languages); @Override boolean hasNext(); @Override ImmutableAlternative next(); @Override void remove();  }### Answer:
@Test public void removeIsNotSupported() throws Exception { AlternativeProvider sut= new AlternativeProvider( Lists.<MediaType>newArrayList(), Lists.<CharacterEncoding>newArrayList(), Lists.<Language>newArrayList()); try { sut.remove(); fail("Should not support remove"); } catch (final UnsupportedOperationException e) { } }