### Question:
GetStatusSample extends AbstractSample { public static String getAuthString( String username, String password ) { String plainAuth = username + ":" + password; String auth = "Basic " + Base64.encodeBase64String( plainAuth.getBytes() ); return auth; }  static void main( String[] args ); static String sendGetStatusRequest( String urlString, String authentication ); static String getUrlString( String realHostname, String port ); static String getAuthString( String username, String password );  }### Answer:
@Test public void testGetAuthString() { assertEquals( "Basic YWRtaW46cGFzc3dvcmQ=", GetStatusSample.getAuthString( "admin", "password" ) ); }