### Question:
TeamRestClient { static String createAuthorization(final StandardUsernamePasswordCredentials credentials) { final String username = credentials.getUsername(); final Secret secretPassword = credentials.getPassword(); final String password = secretPassword.getPlainText(); final String credPair = username + ":" + password; final byte[] credBytes = credPair.getBytes(MediaType.UTF_8); final String base64enc = DatatypeConverter.printBase64Binary(credBytes); final String result = "Basic " + base64enc; return result; } TeamRestClient(final URI collectionUri);  TeamRestClient(final URI collectionUri, final StandardUsernamePasswordCredentials credentials);  TeamRestClient(final String collectionUri, final StandardUsernamePasswordCredentials credentials); static TResponse deserialize(final Class<TResponse> responseClass, final String stringResponseBody); String ping(); ListOfGitRepositories getRepositories(); TeamGitStatus addCommitStatus(final GitCodePushedEventArgs args, final TeamGitStatus status); WorkItem getWorkItem(final int workItemId); void addHyperlinkToWorkItem(final int workItemId, final String hyperlink); TeamGitStatus addPullRequestStatus(final PullRequestMergeCommitCreatedEventArgs args, final TeamGitStatus status); TeamGitStatus addPullRequestIterationStatus(final PullRequestMergeCommitCreatedEventArgs args, final TeamGitStatus status); void sendJobCompletionEvent(final JobCompletionEventArgs args);  }### Answer:
@Test public void createAuthorization_typical() throws Exception { final String personalAccessToken = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; final StandardUsernamePasswordCredentials creds = new UsernamePasswordCredentialsImpl( CredentialsScope.SYSTEM, "buildAccount", null, "PAT", personalAccessToken); final String actual = TeamRestClient.createAuthorization(creds); Assert.assertEquals("Basic UEFUOmFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWE=", actual); }