@Test
public void should_get_project_names() {

    List<String> projectNames = new ArrayList<String>();
    projectNames.add("project1");
    projectNames.add("project2");
    when(hudsonFinder.findJobNames()).thenReturn(projectNames);
    List<String> names = hudson.findJobNames();
    assertEquals("project1", names.get(0));
    assertEquals("project2", names.get(1));
}