    @Test
    public void testSignRequest() throws UnsupportedEncodingException {

        AuthorizationService service = new AuthorizationService(client, escrowAgent,
                secure, encryptBundle, requestToken, PDGuardRequestType.ENCRYPTION);
        SignatureBase signatureBase = new SignatureBase(service.getParameters(),
                "url", "POST");
        Assert.assertNotNull(service.signRequest(signatureBase, "key"));
    }