@Test
public void validJsonArrayStringValue() {

    Mockito.when(headerDefinition.getJavaType()).thenReturn(JsonArray.class);
    final JsonArray jsonArray = JsonFactory.newArrayBuilder()
            .add("foo")
            .add("bar")
            .add("baz")
            .build();
    final String value = jsonArray.toString();
    try {
        underTest.accept(headerDefinition, value);
    } catch (final Throwable t) {
        fail(value + " is a valid JsonArray representation!");
    }
}