### Question:
DefaultBasicAuthSupplier implements HttpAuthSupplier { public static String getBasicAuthHeader(String userName, String passwd) { return getBasicAuthHeader(userName, passwd, false); } DefaultBasicAuthSupplier(); boolean requiresRequestCaching(); static String getBasicAuthHeader(String userName, String passwd); static String getBasicAuthHeader(String userName, String passwd, boolean useIso8859); String getAuthorization(AuthorizationPolicy  authPolicy,
                                   URI currentURI,
                                   Message message,
                                   String fullHeader);  }### Answer:
@Test public void testGetBasicAuthHeader() { assertFalse(StringUtils.isEmpty(DefaultBasicAuthSupplier.getBasicAuthHeader(null, null))); assertFalse(StringUtils.isEmpty(DefaultBasicAuthSupplier.getBasicAuthHeader("u", null))); assertFalse(StringUtils.isEmpty(DefaultBasicAuthSupplier.getBasicAuthHeader(null, "p"))); assertFalse(StringUtils.isEmpty(DefaultBasicAuthSupplier.getBasicAuthHeader("u", "p"))); }