@Test
public void testUpdateFossologyStatusForTheFirstTimeCreatesTheStatusMap() {

    Release release = mock(Release.class);
    fossologyFileHandler.setFossologyStatus(release, clearingTeam, FossologyStatus.SCANNING, "13", "14");
    doAnswer(new Answer() {
        @Override
        public Object answer(InvocationOnMock invocation) throws Throwable {
            try {
                @SuppressWarnings("unchecked")
                Map<String, FossologyStatus> statusMap = (Map<String, FossologyStatus>) invocation.getArguments()[0];
                assertThat(statusMap, hasEntry(clearingTeam, FossologyStatus.SCANNING));
                assertThat(statusMap.keySet(), containsInAnyOrder(clearingTeam));
            } catch (ClassCastException e) {
                fail("status was supposed to be a map :-/" + e.getMessage());
            }
            return null;
        }
    }).when(release).setClearingTeamToFossologyStatus(anyMapOf(String.class, FossologyStatus.class));
    verify(release).setClearingTeamToFossologyStatus(anyMapOf(String.class, FossologyStatus.class));
    verify(release).setFossologyId("13");
    verify(release).setAttachmentInFossology("14");
}