    @Test
    public void shouldEncryptRequestInfo() throws NoSuchAlgorithmException, IOException {


        MockHttpServletRequest request = new MockHttpServletRequest("PUT", "some/URI");
        request.addHeader("x-hmac-auth-date", formattedDateOfNow());
        request.setContent("{ \"key\": \"value\"}".getBytes());

        String encrypted = RequestSigningUtil.createRequestSignature(wrap(request), "secretKey");
        String encrypted2 = RequestSigningUtil.createRequestSignature(wrap(request), "secretKey");

        assertThat(encrypted, is(encrypted2));

        assertThat(encrypted, not(startsWith("PUT\n2012.12.24-00:00:00\nsome/URI\n")));
    }