BasicCredentialsProvider implements CredentialsProvider { public Credentials getCredentials(final AuthScope authscope) { if (authscope == null) { throw new IllegalArgumentException("Authentication scope may not be null"); } return matchCredentials(this.credMap, authscope); } BasicCredentialsProvider(); void setCredentials(
            final AuthScope authscope,
            final Credentials credentials); Credentials getCredentials(final AuthScope authscope); void clear(); @Override String toString();  }
@Test public void testBasicCredentialsProviderNoCredentials() { BasicCredentialsProvider state = new BasicCredentialsProvider(); Assert.assertEquals(null, state.getCredentials(BOGUS)); }