@Test
 public void testGetProjectByLeadWhereNoProjectsExistForLead()
     throws OperationNotPermittedException, InvalidUserException, InvalidCredentialException {
   final Collection<Project> projectsWithoutLead =
       testedObject.getProjectsLeadBy(userMockFactory.getComponentLead());
   assertEquals(0, projectsWithoutLead.size());
 }
  @Test
  public void testGetProjectByLead()
      throws OperationNotPermittedException, InvalidUserException, InvalidCredentialException {
    final GenericEntity projectWithDefaultAssigneeLead =
        projectMockFactory.getProjectWithDefaultAssigneeLead();

    // Now test that we can retrieve the project with lead
    final Collection<Project> projectsWithLead =
        testedObject.getProjectsLeadBy(userMockFactory.getProjectLead());
    assertEquals(1, projectsWithLead.size());
    assertEquals("projectWithAssigneeLead", projectWithDefaultAssigneeLead.getString("name"));
  }