@Test
void basicAuth() {  // refer to https://en.wikipedia.org/wiki/Basic_access_authentication

    var request = new HTTPRequest(HTTPMethod.GET, "http://localhost/uri");
    request.basicAuth("Aladdin", "OpenSesame");
    assertThat(request.headers).containsEntry(HTTPHeaders.AUTHORIZATION, "Basic QWxhZGRpbjpPcGVuU2VzYW1l");
}