ClientRequest request = new ClientRequest(TestPortProvider.generateURL("/signed"));
DKIMSignature contentSignature = new DKIMSignature();
contentSignature.setSelector("test1");
contentSignature.setDomain("samplezone.org");
contentSignature.setPrivateKey(badKey);
request.header(DKIMSignature.DKIM_SIGNATURE, contentSignature);
request.body("text/plain", "hello world");
ClientResponse response = request.post();
Assert.assertEquals(401, response.getStatus());
}