@Test public void testAnalyseWithBranch() { when(project.getBranch()).thenReturn("ProductionWhatever"); when(project.getName()).thenReturn("Project #1 ProductionWhatever"); testAnalyse(); }