BasicAuthenticator implements J4pAuthenticator { public J4pAuthenticator preemptive() { preemptive = true; return this; } BasicAuthenticator();  BasicAuthenticator(boolean pPreemptive); J4pAuthenticator preemptive(); void authenticate(HttpClientBuilder pBuilder, String pUser, String pPassword);  }
@Test public void testPreemptive() throws Exception { J4pAuthenticator auth = new BasicAuthenticator().preemptive(); HttpClientBuilder builder = HttpClientBuilder.create(); auth.authenticate(builder, "test", "test"); builder.build(); }