{
ClientRequest request = new ClientRequest(TestPortProvider.generateURL("/smime/encrypted/signed"));
SignedOutput signed = new SignedOutput("input", "text/plain");
signed.setPrivateKey(privateKey);
signed.setCertificate(cert);
EnvelopedOutput output = new EnvelopedOutput(signed, "multipart/signed");
output.setCertificate(cert);
ClientResponse res = request.body("*/*", output).post();
Assert.assertEquals(204, res.getStatus());
}