BasicAuthorizationProvider implements AuthorizationProvider { @Override public String get() { return authorization; } BasicAuthorizationProvider(final String username, final String password); @Override String get();  }
@Test void shouldSupplyOAuthToken() throws IOException { final AuthorizationProvider unit = new BasicAuthorizationProvider("username", "password"); assertEquals("Basic dXNlcm5hbWU6cGFzc3dvcmQ=", unit.get()); }