    @Test
    public void testRename_successfulRenameFailedRemoveIsIgnored() throws IOException {

        when(mockFs.rename(path, newPath)).thenReturn(true);
        doThrow(new IllegalArgumentException()).when(mockKeyStore).remove(anyString());

        assertThat(mockedEfs.rename(path, newPath)).isTrue();
    }