@Test
public void should_get_estimated_finish_time() throws Exception {

    Date date = new Date();
    when(hudson.getEstimatedFinishTime(Matchers.anyString())).thenReturn(date);
    SoftwareProjectId projectId = new SoftwareProjectId("project1");
    assertEquals(date, jenkinsConnection.getEstimatedFinishTime(projectId, ""));
}