### Question:
TeamCollectionConfiguration extends AbstractDescribableImpl<TeamCollectionConfiguration> { static FormValidation checkTeamServices(final URI uri) { if (UriHelper.hasPath(uri)) { return FormValidation.error("A Team Services collection URL must have an empty path."); } return FormValidation.ok(); } @DataBoundConstructor  TeamCollectionConfiguration(final String collectionUrl, final String credentialsId); String getCollectionUrl(); String getCredentialsId(); ConnectionParameters getConnectionParameters(); @Override DescriptorImpl getDescriptor(); static boolean isTeamServices(final String hostName); static List<StandardUsernamePasswordCredentials> findCredentials(final String hostName); static List<StandardUsernamePasswordCredentials> findCredentials(final String hostName, ItemGroup own); static List<StandardUsernamePasswordCredentials> findCredentials(final String hostName, Item own); static StandardUsernamePasswordCredentials findCredentialsById(final String credentialsId); static String setCredentials(final String hostName, String username, String password); static StandardUsernamePasswordCredentials findCredentialsForCollection(final URI collectionUri); static TeamCollectionConfiguration findCollection(final URI collectionUri); static List<TeamCollectionConfiguration> getConnectedCollections();  }### Answer:
@Test public void checkTeamServices_serverOnly() throws Exception { final URI input = URI.create("https: final FormValidation actual = TeamCollectionConfiguration.checkTeamServices(input); Assert.assertEquals(FormValidation.Kind.OK, actual.kind); }
@Test public void checkTeamServices_serverWithSlash() throws Exception { final URI input = URI.create("https: final FormValidation actual = TeamCollectionConfiguration.checkTeamServices(input); Assert.assertEquals(FormValidation.Kind.OK, actual.kind); }
@Test public void checkTeamServices_serverWithDefaultCollection() throws Exception { final URI input = URI.create("https: final FormValidation actual = TeamCollectionConfiguration.checkTeamServices(input); Assert.assertEquals(FormValidation.Kind.ERROR, actual.kind); }
@Test public void checkTeamServices_serverWithDefaultCollectionSlash() throws Exception { final URI input = URI.create("https: final FormValidation actual = TeamCollectionConfiguration.checkTeamServices(input); Assert.assertEquals(FormValidation.Kind.ERROR, actual.kind); }
@Test public void checkTeamServices_gitUrl() throws Exception { final URI input = URI.create("https: final FormValidation actual = TeamCollectionConfiguration.checkTeamServices(input); Assert.assertEquals(FormValidation.Kind.ERROR, actual.kind); }