@Test
public void testGetAllClearingTeams() throws Exception {

    Release release = mock(Release.class);
    String clearingTeam2 = "team2";
    String clearingTeam3 = "yetAnotherTeam";
    when(release.getClearingTeamToFossologyStatus())
            .thenReturn(ImmutableMap.of(
                    clearingTeam, FossologyStatus.CLOSED,
                    clearingTeam2, FossologyStatus.ERROR
            ));
    assertThat(fossologyFileHandler.getAllClearingTeams(release, clearingTeam),
            containsInAnyOrder(clearingTeam, clearingTeam2));
    assertThat(fossologyFileHandler.getAllClearingTeams(release, clearingTeam3),
            containsInAnyOrder(clearingTeam, clearingTeam2, clearingTeam3));
}