### Question:
TeamRestClient { public String ping() throws IOException { final URI requestUri; if (isTeamServices) { requestUri = UriHelper.join(collectionUri, "_apis", "connectiondata"); } else { requestUri = UriHelper.join(collectionUri, "_home", "About"); } return request(String.class, HttpMethod.GET, requestUri, null); } 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:
@Ignore("Only works on visualstudio.com due to the use of the Authorization header") @Category(IntegrationTests.class) @Test public void ping() throws Exception { final IntegrationTestHelper helper = new IntegrationTestHelper(); final URI collectionUri = new URI(helper.getServerUrl()); final StandardUsernamePasswordCredentials creds = new UsernamePasswordCredentialsImpl( CredentialsScope.SYSTEM, "buildAccount", null, helper.getUserName(), helper.getUserPassword()); final TeamRestClient cut = new TeamRestClient(collectionUri, creds); cut.ping(); }