### Question:
HttpRequestBuilder { public HttpRequestBuilder withProtocolVersion(ProtocolVersion version) { this.protocolVersion = version; return this; } private  HttpRequestBuilder(); HttpRequestBuilder withMethod(HttpMethod method); HttpRequestBuilder withProtocolVersion(ProtocolVersion version); HttpRequestBuilder withHost(String host); HttpRequestBuilder withAbsolutePath(String absolutePath); HttpRequestBuilder withBody(String entity); HttpRequestBuilder withHeader(String name, String rawValue); HttpRequestBuilder withServerDate(Date date); HttpRequestBuilder withClientDate(Date date); HttpRequest build(); static HttpRequestBuilder newInstance();  }### Answer:
@Test public void testWithProtocolVersion$null(){ HttpRequest build=sut().withProtocolVersion(null).build(); assertThat(build.protocolVersion(),equalTo(HttpRequest.ProtocolVersion.HTTP_1_1)); }
@Test public void testWithProtocolVersion$notNull(){ ProtocolVersion otherValue = HttpRequest.ProtocolVersion.HTTP_1_0; HttpRequest build=sut().withProtocolVersion(otherValue).build(); assertThat(build.protocolVersion(),equalTo(otherValue)); }