### Question:
DefaultRequest implements Request<T> { @Override public Request<T> withParameter(String name, String value) { addParameter(name, value); return this; } DefaultRequest(AmazonWebServiceRequest originalRequest, String serviceName);  DefaultRequest(String serviceName); @Override AmazonWebServiceRequest getOriginalRequest(); @Override void addHeader(String name, String value); @Override Map<String, String> getHeaders(); @Override void setResourcePath(String resourcePath); @Override String getResourcePath(); @Override void addParameter(String name, String value); @Override Map<String, String> getParameters(); @Override Request<T> withParameter(String name, String value); @Override HttpMethodName getHttpMethod(); @Override void setHttpMethod(HttpMethodName httpMethod); @Override void setEndpoint(URI endpoint); @Override URI getEndpoint(); @Override String getServiceName(); @Override InputStream getContent(); @Override void setContent(InputStream content); @Override void setHeaders(Map<String, String> headers); @Override void setParameters(Map<String, String> parameters); @Override int getTimeOffset(); @Override void setTimeOffset(int timeOffset); @Override @SuppressWarnings("checkstyle:hiddenfield") Request<T> withTimeOffset(int timeOffset); @Override @SuppressWarnings("checkstyle:hiddenfield") String toString(); @Override @Deprecated AWSRequestMetrics getAWSRequestMetrics(); @Override @Deprecated @SuppressWarnings("checkstyle:hiddenfield") void setAWSRequestMetrics(AWSRequestMetrics metrics); @Override boolean isStreaming(); @Override void setStreaming(boolean streaming);  }### Answer:
@Test public void testWithParameter() { DefaultRequest r = new DefaultRequest("test"); r.withParameter("test", "value"); assertEquals(r.getParameters().get("test"), "value"); }