@Test
public void addsAuthorizationHeader_longUserAndPassword() {

  RequestTemplate template = new RequestTemplate();
  BasicAuthRequestInterceptor interceptor =
      new BasicAuthRequestInterceptor("IOIOIOIOIOIOIOIOIOIOIOIOIOIOIOIOIOIOIO",
          "101010101010101010101010101010101010101010");
  interceptor.apply(template);
  assertThat(template)
      .hasHeaders(
          entry("Authorization", asList(
              "Basic SU9JT0lPSU9JT0lPSU9JT0lPSU9JT0lPSU9JT0lPSU9JT0lPSU86MTAxMDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDEwMTAxMDEw")));
}