### Question:
ImmutableNegotiationResult implements NegotiationResult { @Override public boolean isAcceptable() { return this.variant != null; } 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 nullSelectionIsNotAcceptable() throws Exception { ImmutableNegotiationResult sut=new ImmutableNegotiationResult(null,null,errorVariant,alternatives); assertThat(sut.isAcceptable(),equalTo(false)); }
@Test public void nonNullSelectionsAreAcceptable() throws Exception { ImmutableNegotiationResult sut=new ImmutableNegotiationResult(variant,quality,errorVariant,alternatives); assertThat(sut.isAcceptable(),equalTo(true)); }