@Test
  public void testUpdate() throws DAOException {

    createProjectWithMembers();
    Project oldProject = projectService.getById(project.getId());
    Project newProject = projectService.getById(project.getId());
    newProject.setProjectName("UPDAREPROJECT");
    projectService.update(oldProject, newProject);
    Project superNewProject = projectService.getById(newProject.getId());
    deleteProjectWithMembers();

    assertEquals(superNewProject.getProjectName(), "UPDAREPROJECT");
  }
  @Test
  public void testDelete() throws DAOException {

    createProjectWithMembers();
    deleteProjectWithMembers();
    Project testDeleteProject = projectService.getById(project.getId());

    assertEquals(testDeleteProject, null);
  }
  @Test
  public void testGetById() throws DAOException {

    createProjectWithMembers();
    Project testProject = projectService.getById(project.getId());
    deleteProjectWithMembers();

    assertNotNull(testProject);
    assertTrue((project.getMembers() != null) && (project.getMembers().size() > 0));
  }