@Test
public void addsAuthorizationHeader() {

  RequestTemplate template = new RequestTemplate();
  BasicAuthRequestInterceptor interceptor =
      new BasicAuthRequestInterceptor("Aladdin", "open sesame");
  interceptor.apply(template);
  assertThat(template)
      .hasHeaders(
          entry("Authorization", asList("Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==")));
}