HttpsRequestPreparator extends ProtocolMessagePreparator<HttpsRequestMessage> { @Override protected void prepareProtocolMessageContents() { message.setRequestPath("/"); message.setRequestProtocol("HTTP/1.1"); message.setRequestType("GET"); for (HttpsHeader header : message.getHeader()) { header.getPreparator(chooser).prepare(); } } HttpsRequestPreparator(Chooser chooser, HttpsRequestMessage message);   }
@Test public void testPrepareProtocolMessageContents() { preparator.prepareProtocolMessageContents(); assertEquals("/", message.getRequestPath().getOriginalValue()); assertEquals("HTTP/1.1", message.getRequestProtocol().getOriginalValue()); assertEquals("GET", message.getRequestType().getOriginalValue()); assertEquals(2, message.getHeader().size()); }