### Question:
ImmutableAlternatives implements Alternatives { @Override public int size() { return this.entries.size(); } 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 hasSizeReflectsActualSizeOfPopulatedAlternatives() throws Exception { assertThat(empty().size(),equalTo(0)); assertThat(populated().size(),equalTo(2)); }