@Test
public void findProjectsByOrganizationNameTest() throws Exception {

	// given
	Project p = new ProjectBuilder().create();
	when(projectRepository.findProjects(ORGANIZATION1, empty(), empty())).thenReturn(singletonList(p));
	// when
	List<Project> projectList = (List<Project>) projectService.findProjects(ORGANIZATION1, empty(), empty(),
			empty(), empty(), empty(), empty(), empty());
	// then
	assertThat(projectList, hasSize(1));
	assertThat(projectList.get(0), equalTo(p));
}