@Test
public void testBasic() throws Exception {

  Interceptor.Builder builder = InterceptorBuilderFactory.newInstance(
          InterceptorType.HOST.toString());
  Interceptor interceptor = builder.build();
  Event eventBeforeIntercept = EventBuilder.withBody("test event",
          Charsets.UTF_8);
  Assert.assertNull(eventBeforeIntercept.getHeaders().get(Constants.HOST));
  Event eventAfterIntercept = interceptor.intercept(eventBeforeIntercept);
  String actualHost = eventAfterIntercept.getHeaders().get(Constants.HOST);
  Assert.assertNotNull(actualHost);
}