void () { final String path = "/a/b/c"; final String path2 = "/a2/b2/c2"; final String path3 = "/a3/b3/c3"; final String path4 = "/a4/b4/c4"; final String path5 = "/a5/b5/c5"; final String anotherVcs = "another"; myMockLocalFileSystem.add(path); myMockLocalFileSystem.add(path2); myMockLocalFileSystem.add(path3); myMockLocalFileSystem.add(path4); myNewMappings.setDirectoryMappings(Arrays.asList(new VcsDirectoryMapping(path, ourVcsName), new VcsDirectoryMapping(path2, ourVcsName), new VcsDirectoryMapping(path3, anotherVcs), new VcsDirectoryMapping(path4, anotherVcs))); // set another myMockLocalFileSystem.remove(path2); myMockLocalFileSystem.remove(path3); myMockLocalFileSystem.remove(path4); myMockLocalFileSystem.add(path5); myNewMappings.setDirectoryMappings(Arrays.asList(new VcsDirectoryMapping(path, ourVcsName), new VcsDirectoryMapping(path5, anotherVcs))); }