@Test
    void parseEncodedFilenameWithInvalidName() {
        assertThatThrownBy(() -> parse("form-data; name=\"name\"; filename*=UTF-8''%A"))
                .isInstanceOf(IllegalArgumentException.class)
                .hasMessageContaining(
                        "Invalid filename header field parameter format (as defined in RFC 5987): " +
                        "%A (charset: UTF-8)");

        assertThatThrownBy(() -> parse("form-data; name=\"name\"; filename*=UTF-8''%A.txt"))
                .isInstanceOf(IllegalArgumentException.class)
                .hasMessageContaining(
                        "Invalid filename header field parameter format (as defined in RFC 5987): " +
                        "%A.txt (charset: UTF-8)");
    }
Unit tests for {@link ContentDisposition}.
@author Sebastien Deleuze
@author Rossen Stoyanchev
core/src/test/java/com/linecorp/armeria/common/ContentDispositionTest.java