public static String buildBasicAuthValue(String username, String password) {
        String credentials = join(":", username, password);
        return format("Basic %s", Util.encodeToBase64(credentials));
    }
@Test
    public void testBuildBasicAuthValue() {
        String username = "testUser";
        String password = "testPassword";
        String expectedHeaderValue = "Basic dGVzdFVzZXI6dGVzdFBhc3N3b3Jk";
        String actualHeaderValue = CruiseControlUtil.buildBasicAuthValue(username, password);
        assertEquals(expectedHeaderValue, actualHeaderValue);
    }