@Test
public void should_find_specs_for_operation() throws Exception {

    RestxSpecRepository resource = getRestxSpecRepository();
    ImmutableMap<String, RestxSpec> allSpecs = ImmutableMap.of(
            "cases/test/test.spec.yaml", spec("should say hello on path", when("GET", "/messages/xavier")),
            "cases/test/test2.spec.yaml", spec("should say hello w/ query param", when("GET", "/messages?who=xavier")));
    assertThat(resource.filterSpecsByOperation(allSpecs, "GET", "/messages/{id}"))
            .isNotEmpty().containsExactly("cases/test/test.spec.yaml");
    assertThat(resource.filterSpecsByOperation(allSpecs, "GET", "/messages"))
            .isNotEmpty().containsExactly("cases/test/test2.spec.yaml");
}