@Test
public void acceptNonJsonArrayString() {

    final String invalidJsonArrayString = "foo";
    final JsonArrayValueValidator underTest = JsonArrayValueValidator.getInstance();
    assertThatExceptionOfType(DittoHeaderInvalidException.class)
            .isThrownBy(() -> underTest.accept(DittoHeaderDefinition.REQUESTED_ACKS, invalidJsonArrayString))
            .withMessageContaining(invalidJsonArrayString)
            .withMessageEndingWith("is not a valid JSON array.")
            .withNoCause();
}