### Question:
ImmutableNegotiationResult implements NegotiationResult { @Override public ImmutableVariant variant() { return this.variant; } 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 acceptableVariantCanBeRetrieved() throws Exception { ImmutableNegotiationResult sut=new ImmutableNegotiationResult(variant,quality,errorVariant,alternatives); assertThat(sut.variant(),sameInstance(variant)); }