### Question:
Project { static hudson.plugins.tfs.model.ChangeSet.Item convertServerChange (com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Change serverChange) { final String path = serverChange.getItem().getServerItem(); final String action = serverChange.getChangeType().toUIString(true); final Item result = new Item(path, action); return result; } Project(Server server, String projectPath); String getProjectPath(); static hudson.plugins.tfs.model.ChangeSet convertServerChangeset(com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Changeset serverChangeset, UserLookup userLookup); List<ChangeSet> getVCCHistory(VersionSpec fromVersion, VersionSpec toVersion, boolean includeFileDetails, int maxCount); @SuppressFBWarnings(value = "DC_DOUBLECHECK", justification = "Only synchronize if not null") UserLookup getOrCreateUserLookup(); List<ChangeSet> getDetailedHistory(Calendar fromTimestamp, Calendar toTimestamp); List<ChangeSet> getDetailedHistory(final String singleVersionSpec); List<ChangeSet> getBriefHistory(Calendar fromTimestamp, Calendar toTimestamp); List<ChangeSet> getBriefHistory(int fromChangeset, Calendar toTimestamp); ChangeSet getLatestChangeset(); ChangeSet getLatestUncloakedChangeset(final int fromChangeset, final Collection<String> cloakedPaths); List<ChangeSet> getDetailedHistoryWithoutCloakedPaths(final Calendar fromTimestamp, final Calendar toTimestamp, final Collection<String> cloakedPaths); List<ChangeSet> getDetailedHistoryWithoutCloakedPaths(final VersionSpec fromVersion, final VersionSpec toVersion, final Collection<String> cloakedPaths); void getFiles(String localPath, String versionSpec, boolean useOverwrite); int getRemoteChangesetVersion(final String remotePath, final VersionSpec versionSpec); int getRemoteChangesetVersion(final VersionSpec versionSpec); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void assertConvertServerChange() throws Exception { final com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Change serverChange = createServerChange(); final Item actual = Project.convertServerChange(serverChange); assertEquals("$/tfsandbox", actual.getPath()); assertEquals("add", actual.getAction()); }