@Test
public void findProjectsByProjectNameAndLanguageTest() throws Exception {

	// given
	Project p = new ProjectBuilder().gitHubProjectId(1).organizationName(ORGANIZATION1).starsCount(1)
			.commitsCount(2).contributorsCount(1).score(20).forksCount(0).create();
	when(projectRepository.findProjects(ORGANIZATION1, Optional.of("PROJECT Z"),
			Optional.of(LANGUAGE1))).thenReturn(singletonList(p));
	// when
	List<Project> projectList = (List<Project>) projectService.findProjects(ORGANIZATION1, empty(), empty(),
			empty(), empty(), empty(), Optional.of("PROJECT Z"), Optional.of(LANGUAGE1));
	// then
	assertThat(projectList, hasSize(1));
	assertThat(projectList.get(0), equalTo(p));
}