public void testCreate() {
System.out.println("ReleaseController:Create");
ReleaseController releaseController = new ReleaseController();
Date creationDate = new Date();
Date releaseDate = new Date();
Release release = new Release("Test Create Release", creationDate, releaseDate, true, project1);
Release releaseResult = releaseController.create(release);
//Check Release properties.
assertNotNull(releaseResult.getId());
assertEquals(release.getName(), releaseResult.getName());
assertEquals(release.getStartDate(), releaseResult.getStartDate());
assertEquals(release.getReleaseDate(), releaseResult.getReleaseDate());
assertEquals(release.isActive(), releaseResult.isActive());
assertEquals(release.getProject(), releaseResult.getProject());
//Check project properties.
project1 = projectController.refresh(project1);
assertTrue(project1.getReleases().contains(releaseResult));