scmManipulator.addFile(checkoutDirectoryForVerifications, "jobs/hello.txt");
scmManipulator.addFile(checkoutDirectoryForVerifications, "hello2.txt");
scmManipulator.checkinFiles(checkoutDirectoryForVerifications, "external commit");
// Renaming fakeJob to newFakeJob
Item mockedItem = Mockito.mock(Item.class);
File mockedItemRootDir = new File(getCurrentHudsonRootDirectory() + "/jobs/newFakeJob/" );
when(mockedItem.getRootDir()).thenReturn(mockedItemRootDir);
sscItemListener.onRenamed(mockedItem, "fakeJob", "newFakeJob");
// Assert no hello file is present in current hudson root
assertThat(new File(this.getCurrentScmSyncConfigurationCheckoutDirectory()+"/jobs/hello.txt").exists(), is(false));