@Override
  public void apply(RequestTemplate template) {
    template.header("Authorization", headerValue);
  }
@Test
  void addsAuthorizationHeader() {
    RequestTemplate template = new RequestTemplate();
    BasicAuthRequestInterceptor interceptor =
        new BasicAuthRequestInterceptor("Aladdin", "open sesame");
    interceptor.apply(template);

    assertThat(template)
        .hasHeaders(
            entry("Authorization", asList("Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==")));
  }