@Test
public void testMaybeAppendAuthHeaderWithoutPassword() throws URISyntaxException {

    Request request = mock(Request.class);
    URI uri = new URI("http://testuser@127.0.0.1:8080/content");
    service.maybeAppendAuthHeader(uri, request);
    verify(request).header(HttpHeader.AUTHORIZATION,
            "Basic " + B64Code.encode("testuser:", StringUtil.__ISO_8859_1));
}