@Test
public void testCanonicalRepresentation_Server_AllFields_Get() throws Exception {

  // Mock headers
  InBoundHeaders headers = new InBoundHeaders();
  headers.add(HttpHeaders.DATE, "Sat, 01 Jan 2000 12:34:56 GMT");
  headers.add(HttpHeaders.HOST, "www.example.org");
  headers.add(HttpHeaders.USER_AGENT, "curl/7.20.0 (x86_64-pc-linux-gnu) libcurl/7.20.0 OpenSSL/1.0.0a zlib/1.2.3");
  headers.add(HmacUtils.X_HMAC_DATE, "Sat, 01 Jan 2000 12:34:57 GMT");
  headers.add(HmacUtils.X_HMAC_NONCE, "Thohn2Mohd2zugo");
  // Mock request
  ContainerRequest containerRequest = mock(ContainerRequest.class);
  when(containerRequest.getRequestHeaders()).thenReturn(headers);
  when(containerRequest.getMethod()).thenReturn("GET");
  when(containerRequest.getRequestUri()).thenReturn(URI.create(baseUri + resourcePath + queryParameters));
  String representation = HmacUtils.createCanonicalRepresentation(containerRequest);
  FixtureAsserts.assertStringMatchesStringFixture("GET all fields canonical representation", representation, "/fixtures/hmac/expected-canonical-get.txt");
}