@Test
public void testIsSigned() throws URISyntaxException {

  String noQueryString = "http://notsigned.com";
  String wrongQueryString = "http://notsigned.com?irrelevant=value";
  String signed = "http://notsigned.com?signature=theSignature&keyId=theKey&policy=thePolicy";
  assertFalse(ResourceRequestUtil.isSigned(new URI(noQueryString)));
  assertFalse(ResourceRequestUtil.isSigned(new URI(wrongQueryString)));
  assertTrue(ResourceRequestUtil.isSigned(new URI(signed)));
}