protected static String getBasicAuthorizationHeaderValue(String username, String password)
            throws UnsupportedEncodingException {
        String authorizationHeader = username + ":" + password;
        byte[] valueBytes;
        valueBytes = authorizationHeader.getBytes("UTF-8");
        authorizationHeader = new String(Base64.encode(valueBytes));
        return "Basic " + authorizationHeader;
    }
Overriding with contents of this pull request, to make fragment scanning work.
<a href="https://github.com/mjeanroy/junit-servers/pull/3"></a>
integration-tests/support/src/main/java/org/apache/shiro/testing/web/AbstractContainerIT.java