public void shouldDumpOnlyMatchingToLogAsJava() {
// when
logFilter.dumpToLog(new HttpRequest().withPath("some_path"), true);
// then
verify(logger).warn(new ExpectationSerializer().serializeAsJava(new Expectation(httpRequest, Times.once()).thenRespond(httpResponseOne)));
verify(logger).warn(new ExpectationSerializer().serializeAsJava(new Expectation(httpRequest, Times.once()).thenRespond(httpResponseThree)));
verifyNoMoreInteractions(logger);
// when
logFilter.dumpToLog(new HttpRequest().withPath("some_other_path"), true);
// then
verify(logger).warn(new ExpectationSerializer().serializeAsJava(new Expectation(otherHttpRequest, Times.once()).thenRespond(httpResponseTwo)));
verifyNoMoreInteractions(logger);
}