### Question:
HTTPUtilitiesImplementation implements HTTPUtilities { public NVPair basicAuthorizationHeader(String userID, String password) { return new NVPair("Authorization", "Basic " + Codecs.base64Encode(userID + ":" + password)); } HTTPUtilitiesImplementation(PluginProcessContext processContext); NVPair basicAuthorizationHeader(String userID, String password); HTTPResponse getLastResponse(); String valueFromLocationURI(final String tokenName); String valueFromBodyInput(final String tokenName); String valueFromBodyInput(String tokenName, String afterText); List<String> valuesFromBodyInput(final String tokenName); List<String> valuesFromBodyInput(String tokenName, String afterText); String valueFromHiddenInput(final String tokenName); String valueFromHiddenInput(String tokenName, String afterText); List<String> valuesFromHiddenInput(final String tokenName); List<String> valuesFromHiddenInput(String tokenName, String afterText); String valueFromBodyURI(final String tokenName); String valueFromBodyURI(final String tokenName, String afterText); List<String> valuesFromBodyURI(final String tokenName); List<String> valuesFromBodyURI(final String tokenName,
                                        String afterText);  }### Answer:
@Test public void testBasicAuthorizationHeader() throws Exception { final HTTPUtilities httpUtilities = new HTTPUtilitiesImplementation(m_pluginProcessContext); final NVPair pair = httpUtilities.basicAuthorizationHeader("foo", "secret"); assertEquals("Authorization", pair.getName()); assertEquals("Basic Zm9vOnNlY3JldA==", pair.getValue()); final NVPair pair2 = httpUtilities.basicAuthorizationHeader("", ""); assertEquals("Authorization", pair2.getName()); assertEquals("Basic Og==", pair2.getValue()); }