### Question:
WmsGetMapRequest extends WmsRequest { @Override public String getResponseContentType() { if (this.format == null) { throw new UnsupportedOperationException(); } else { return format; } } WmsGetMapRequest(); Dimension getDimension(); String getRequest(); String getFormat(); String getVersion(); String getTransparent(); String getExceptions(); Integer getHeight(); Integer getWidth(); String getSrs(); WmsBbox getBbox(); Color getBgcolor(); String[] getLayers(); String[] getStyles(); String toString(); @Override String getResponseContentType();  }### Answer:
@Test public void test_response_content_equals_request_format() throws InvalidWmsRequestException { HttpRequest request = makeRequest(baseRequestParameters); WmsRequest wmsReq = WmsRequest.adapt(request); assertEquals("image/png", wmsReq.getResponseContentType()); baseRequestParameters.put("FORMAT", "image/jpeg"); HttpRequest requestJpeg = makeRequest(baseRequestParameters); wmsReq = WmsRequest.adapt(requestJpeg); assertEquals("image/jpeg", wmsReq.getResponseContentType()); }