@Test
public void handleMethodAnnotationShouldFillProducesWithFirstAnnotationValue() throws Exception {

    when(mockAnnotation.value()).thenReturn(new String[]{"a","b"});
    when(mockMethodConfigBuilder.setProduces("a")).thenReturn(mockMethodConfigBuilder);
    toTest.handleMethodAnnotation(mockAnnotation, mockMethodConfigBuilder);
    verify(mockAnnotation, times(2)).value();
    verify(mockMethodConfigBuilder).setProduces("a");
}