}
@Test
public void savesMappingsToMappingsDirectory() {
// Check the mapping we're about to add isn't already there
WireMockResponse response = testClient.get("/some/url");
assertThat(response.statusCode(), is(404));
// Add a mapping and save it
stubFor(get(urlEqualTo("/some/url"))
.willReturn(aResponse().withBody("Response to /some/url")));
saveAllMappings();
// Reset, clearing in-memory mappings
resetToDefault();
// Check the mapping now exists
response = testClient.get("/some/url");
assertThat(response.statusCode(), is(200));
assertThat(response.content(), is("Response to /some/url"));
}