// If the separator is not URL encoded then the following URLs have the same query-string-hash:
// https://djtest9.jira-dev.com/rest/api/2/project&a=b?x=y
// https://djtest9.jira-dev.com/rest/api/2/project?a=b&x=y
@Test
public void ampersandsInPathAreNotAmbiguous() throws UnsupportedEncodingException {
CanonicalHttpRequest request1 = new CanonicalHttpUriRequest(METHOD, "/path&a=b", "/", ImmutableMap.<String, String[]>of("x", new String[]{"y"}));
CanonicalHttpRequest request2 = new CanonicalHttpUriRequest(METHOD, "/path", "/", ImmutableMap.<String, String[]>of("a", new String[]{"b"}, "x", new String[]{"y"}));
assertThat(HttpRequestCanonicalizer.canonicalize(request1), is(not(HttpRequestCanonicalizer.canonicalize(request2))));
}