@Test
    void testFactory() {
        assertThat(ContentDisposition.of("typeA"))
                .isEqualTo(ContentDisposition.builder("typeA").build());

        assertThat(ContentDisposition.of("typeB", "nameB"))
                .isEqualTo(ContentDisposition.builder("typeB")
                                             .name("nameB")
                                             .build());

        assertThat(ContentDisposition.of("typeC", "nameC", "file.txt"))
                .isEqualTo(ContentDisposition.builder("typeC")
                                             .name("nameC")
                                             .filename("file.txt")
                                             .build());
    }
Unit tests for {@link ContentDisposition}.
@author Sebastien Deleuze
@author Rossen Stoyanchev
core/src/test/java/com/linecorp/armeria/common/ContentDispositionTest.java