@Test
public void issueFixVersionIsSet() throws Exception {
String existingProjectKey = "test";
Issue toCreate = IssueHelper.generateRandomIssue();
Version v = VersionFactory.create(1);
String versionName = "1.0";
v.setName("1.0");
v.setProject(mgr.getProjectManager().getProjectByKey(projectKey));
v = mgr.getProjectManager().createVersion(v);
toCreate.setTargetVersion(v);
Issue createdIssue = issueManager.createIssue(existingProjectKey, toCreate);
assertNotNull(createdIssue.getTargetVersion());