WSHTClient { final void setAuthorizationRealm(String username, String password) { String effectivePassword = password; if (effectivePassword == null) { effectivePassword = ""; } this.authorizationRealm = new String(Base64.encodeBase64((username + ":" + effectivePassword).getBytes())); } WSHTClient(URL endpoint, String username, String password); GetMyTasksResponse getReadyTaskList(); GetMyTasksResponse getTaskList(String taskName,
			XMLTStatus.Enum[] state); GetMyTasksResponse getReadyTaskList(String taskName); void completeTaskWithOutput(String taskId, XmlObject completeData); GetInputResponse getInput(String taskId);  }
@Test public void testSetAuthorizationRealm() { assertEquals("ZG9uYWxkOmR1Y2s=", client.getAuthorizationRealm()); client.setAuthorizationRealm("Mickey", "Mouse"); assertEquals("TWlja2V5Ok1vdXNl", client.getAuthorizationRealm()); client.setAuthorizationRealm("Aladdin", "open sesame"); assertEquals("QWxhZGRpbjpvcGVuIHNlc2FtZQ==", client.getAuthorizationRealm()); }