@Test
public void parseNonJsonArrayCharSequence() {

    assertThatExceptionOfType(JsonParseException.class)
            .isThrownBy(() -> DefaultMetadataHeaders.parseMetadataHeaders("42"))
            .withMessage("<42> is not a valid JSON array!")
            .withNoCause();
}