public void testFilterSnapshotsWhenResponseIs2xx() {
HttpResponse filterResponse = HttpResponse.builder().statusCode(200)
.payload(payloadFromResourceWithContentType("/describe_snapshots.xml", "text/xml")).build();
EC2Api apiWhenExist = requestsSendResponses(describeRegionsRequest, describeRegionsResponse, filterSnapshots, filterResponse);
Snapshot snapshot = getOnlyElement(apiWhenExist.getElasticBlockStoreApi().get().describeSnapshotsInRegionWithFilter("us-east-1",
ImmutableMultimap.<String, String>builder()
.put("volume-id", "4d826724")
.build()));
assertEquals(snapshot.getId(), "snap-78a54011");