getLastPathSegment(fakeVersionUri2) + " does not exist.", Response.Status.BAD_REQUEST);
assertInvalidMoveToVersion(version.getSelf(), fakeVersionUri, fakeVersionUri2, "The affects version with id " +
getLastPathSegment(fakeVersionUri2) + " does not exist.", Response.Status.BAD_REQUEST);
assertEquals(1, client.getVersionRestClient().getNumUnresolvedIssues(version.getSelf(), pm));
assertEquals(new VersionRelatedIssuesCount(version.getSelf(), 1, 1), client.getVersionRestClient().getVersionRelatedIssuesCount(version.getSelf(), pm));
assertEquals(new VersionRelatedIssuesCount(version.getSelf(), 1, 1), client.getVersionRestClient().getVersionRelatedIssuesCount(version.getSelf(), pm));
// now removing the first version
client.getVersionRestClient().removeVersion(version.getSelf(), version1.getSelf(), version1.getSelf(), pm);
final Issue issueAfterVerRemoval = client.getIssueClient().getIssue("TST-2", pm);
assertThat(Iterables.transform(issueAfterVerRemoval.getFixVersions(), new VersionToNameMapper()), containsInAnyOrder("1"));