### Question:
HeaderUtil { public static String getAuthorization(String usr, String pwd) { return "Basic " + base64Encode(usr + ":" + pwd); }  static String getAuthorization(String usr, String pwd); static final String USER; static final String PASS; static final String DefaulAuth; }### Answer:
@Test public void getAuthorizationTest() throws Exception { String authorization = HeaderUtil.getAuthorization(HeaderUtil.USER, HeaderUtil.PASS); assertEquals("Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ==", authorization); }