### Question:
GetCapabilitiesParameters extends MultiValueRequestParameters { public void addAcceptedFormat(final String acceptedFormat) { addParameterValue(ACCEPT_FORMATS_PARAMETER, acceptedFormat); } GetCapabilitiesParameters(final String service, final String acceptVersion);  GetCapabilitiesParameters(final String service, final String... acceptVersions); void setUpdateSequence(final String updateSequence); void addSection(final String section); void addAcceptedFormat(final String acceptedFormat); void addAcceptedVersion(final String acceptedVersion); boolean isValid();  }### Answer:
@Test public void testCreateWithMultipleAcceptedFormats() { GetCapabilitiesParameters parameters = new GetCapabilitiesParameters("SOS"); parameters.addAcceptedFormat("text/xml"); parameters.addAcceptedFormat("application/xml"); assertTrue(parameters.contains(SERVICE_PARAMETER)); assertFalse(parameters.contains(SECTION_PARAMETER)); assertFalse(parameters.contains(ACCEPT_VERSIONS_PARAMETER)); assertTrue(parameters.contains(ACCEPT_FORMATS_PARAMETER)); assertTrue(parameters.hasMultipleValues(ACCEPT_FORMATS_PARAMETER)); }