### Question:
ContentDisposition { public Optional<String> name() { return Optional.ofNullable(parameters.get(NAME_PARAMETER)); } private  ContentDisposition(String type, Map<String, String> params); String type(); Optional<String> name(); Optional<String> filename(); Optional<ZonedDateTime> creationDate(); Optional<ZonedDateTime> modificationDate(); Optional<ZonedDateTime> readDate(); OptionalLong size(); Map<String, String> parameters(); @Override String toString(); static Builder builder();  }### Answer:
@Test public void testName() { ContentDisposition cd = ContentDisposition.parse("form-data; name=user"); assertThat(cd.type(), is(equalTo("form-data"))); assertThat(cd.name().isPresent(), is(equalTo(true))); assertThat(cd.name().get(), is(equalTo("user"))); assertThat(cd.parameters(), is(notNullValue())); assertThat(cd.parameters().size(), is(equalTo(1))); }