// based on the reference test case from
  // http://oauth.pbwiki.com/TestCases
  @Test
  public void testGetCalculateSignature() {
    ConsumerKey consumer = new ConsumerKey(CONSUMER_KEY, CONSUMER_SECRET);
    RequestToken user = new RequestToken(TOKEN_KEY, TOKEN_SECRET);
    OAuthSignatureCalculator calc = new OAuthSignatureCalculator(consumer, user);

    Request request =
        get("http://photos.example.net/photos") //
            .addQueryParam("file", "vacation.jpg") //
            .addQueryParam("size", "original") //
            .build();

    String sig = calc.calculateSignature(request, TIMESTAMP, NONCE);

    assertEquals(sig, "tR3+Ty81lMeYAr/Fid0kMTYa/WM=");
  }