### Question:
ImmutableAlternatives implements Alternatives { @Override public ImmutableQuality quality(int i) { return entry(i).quality; } private  ImmutableAlternatives(final ImmutableList<Entry> entries); @Override Iterator<Alternative> iterator(); @Override int size(); @Override boolean isEmpty(); @Override ImmutableAlternative alternative(int i); @Override ImmutableQuality quality(int i); @Override String toString();  }### Answer:
@Test public void retrievesQualityAccordingToRegistrationIndex() throws Exception { assertThat(populated().quality(0),equalTo(Q1)); assertThat(populated().quality(1),equalTo(Q2)); }