OAuth1aInterceptor implements Interceptor { String getAuthorizationHeader(Request request) throws IOException { return new OAuth1aHeaders().getAuthorizationHeader(authConfig, session.getAuthToken(), null, request.method(), request.url().toString(), getPostParams(request)); } OAuth1aInterceptor(Session<? extends TwitterAuthToken> session,
            TwitterAuthConfig authConfig); @Override Response intercept(Chain chain);  }
@Test public void testGetAuthHeaders() throws IOException { final Request request = new Request.Builder().url(TEST_URL).build(); final String header = interceptor.getAuthorizationHeader(request); assertNotNull(header); }