I guess there will be an exception here.
to be able to test that we have exception here code can be altered like this:

    try{
        map.remove(1);
        fail();
    } catch (Exception ignore) {}