public void listingAllStubMappings() {
stubFor(get(urlEqualTo("/stub/one")).willReturn(aResponse().withBody("One")));
stubFor(post(urlEqualTo("/stub/two")).willReturn(aResponse().withBody("Two").withStatus(201)));
ListStubMappingsResult listingResult = listAllStubMappings();
StubMapping mapping1 = listingResult.getMappings().get(0);
assertThat(mapping1.getRequest().getMethod(), is(POST));
assertThat(mapping1.getRequest().getUrl(), is("/stub/two"));
assertThat(mapping1.getResponse().getBody(), is("Two"));
assertThat(mapping1.getResponse().getStatus(), is(201));
StubMapping mapping2 = listingResult.getMappings().get(1);
assertThat(mapping2.getRequest().getMethod(), is(GET));
assertThat(mapping2.getRequest().getUrl(), is("/stub/one"));
assertThat(mapping2.getResponse().getBody(), is("One"));
}