@Test
public void testFilterTwoReplacements() {

    String path = "/profiles/123456789/my/test@test.com/user.json";
    String expr = "/profiles/{organization}/my/{email}/user.json";
    PathFilter regexpPathUriFilter = new DefaultPathFilter("XXX", expr);
    String result = regexpPathUriFilter.filter(path);
    assertThat(result, is("/profiles/XXX/my/XXX/user.json"));
}