@Test
public void shouldNotReturnCodecForObjectAnnotatedWithChoicesOneOfWhichNotEntry() {

    when(annotations.getAnnotation(BoundList.class)).thenReturn(boundList);
    when(boundList.selectFrom()).thenReturn(choices);
    when(choices.alternatives()).thenReturn(new Choices.Choice[] { firstChoice, secondChoice });
    when(firstChoice.type()).thenReturn((Class) Map.Entry.class);
    when(secondChoice.type()).thenReturn((Class) String.class);
    MapCodecFactory factory = new MapCodecFactory(delegate);
    Codec<Map> mapCodec = factory.create(annotations, Map.class, context);
    assertThat(mapCodec, is(nullValue()));
    verify(annotations).getAnnotation(BoundList.class);
    verifyNoMoreInteractions(annotations, delegate, codec);
}