	@Test
	public void testInterceptor() throws GeneralSecurityException, HttpException, IOException {

		HttpMessageSigner httpSignature = HttpMessageSigner.builder()
				.algorithm(Algorithm.RSA_SHA256)
				.keyMap(HashKeyMap.INSTANCE)
				.addHeaderToSign(HttpMessageSigner.REQUEST_TARGET)
				.addHeaderToSign("Date")
				.addHeaderToSign("Content-Length")
				.addHeaderToSign("Digest")
				.keyId("myKeyId").build();
		HttpEntityEnclosingRequest request = new BasicHttpEntityEnclosingRequest("GET", "http://www.example.com/web/service?foo=bar");
		request.setEntity(new StringEntity("Hello World!"));
		createHttpProcessor(httpSignature).process(request, new BasicHttpContext());

		SignatureHeaderVerifier signatureVerifier = SignatureHeaderVerifier.builder().keyMap(HashKeyMap.INSTANCE).build();
		assertTrue(signatureVerifier.verify(new Request(request)));

	}