@Test
@SuppressWarnings( "unchecked" )
public void updateUserGroups()
{

    Mockito.when( userService.getUser( "def2" ) ).thenReturn( user );
    final TypeReport typeReport = new TypeReport( User.class );
    typeReport.getStats().incUpdated();
    final ImportReport importReport = new ImportReport();
    importReport.setStatus( Status.OK );
    importReport.addTypeReport( typeReport );
    if ( importReport.getStatus() == Status.OK && importReport.getStats().getUpdated() == 1 )
    {
        userController.updateUserGroups( "def2", parsedUser, currentUser );
    }
    Mockito.verifyNoInteractions( currentUserService );
    Mockito.verify( userGroupService ).updateUserGroups( Mockito.same( user ),
        (Collection<String>) argThat( Matchers.containsInAnyOrder( "abc1", "abc2" ) ),
        Mockito.same( currentUser ) );
}