@Test
public void invalidJsonArrayStringValueNoJsonArray() {

    Mockito.when(headerDefinition.getJavaType()).thenReturn(JsonArray.class);
    final String value = "foo";
    assertThatExceptionOfType(DittoHeaderInvalidException.class)
            .isThrownBy(() -> underTest.accept(headerDefinition, value))
            .withMessage("The value '%s' of the header '%s' is not a valid JSON array.", value, HEADER_KEY)
            .withNoCause();
}