### Question:
ImmutableNegotiationResult implements NegotiationResult { @Override public ImmutableQuality quality() { return this.quality; } ImmutableNegotiationResult(final ImmutableVariant variant, ImmutableQuality quality, final ImmutableVariant errorVariant, ImmutableAlternatives alternatives); @Override boolean isAcceptable(); @Override ImmutableVariant variant(); @Override ImmutableQuality quality(); @Override ImmutableAlternatives alternatives(); @Override Multimap<String,String> responseHeaders(final boolean accepted);  }### Answer:
@Test public void qualityCanBeRetrieved() throws Exception { ImmutableNegotiationResult sut=new ImmutableNegotiationResult(variant,quality,errorVariant,alternatives); assertThat(sut.quality(),sameInstance(quality)); }