assertThat(new HttpRequestFailoverMatcher(request).match(request), is(true));
}
@Test
public void should_not_be_match_if_request_is_different() {
HttpRequest request = DefaultHttpRequest.builder()
.withUri("/uri")
.withVersion(HttpProtocolVersion.VERSION_1_1)
.withMethod("POST")
.withContent("proxy")
.withHeaders(of("Cookie", "loggedIn=true", "Host", "localhost:12306"))
.build();
HttpRequest another = DefaultHttpRequest.builder()
.withUri("/uri")
.withVersion(HttpProtocolVersion.VERSION_1_1)
.withMethod("POST")
.withContent("different")
.withHeaders(of("Cookie", "loggedIn=true", "Host", "localhost:12306"))