ProfileInstance profile = mock(ProfileInstance.class);
when(profile.getProfileSpec()).thenReturn(profileSpec);
ProfileSpecWalkerImpl walker = new ProfileSpecWalkerImpl();
ProgressMonitor progressMonitor = mock(ProgressMonitor.class);
walker.setProgressMonitor(progressMonitor);
FileEventHandler fileEventHandler = mock(FileEventHandler.class);
DirectoryEventHandler dirEventhandler = mock(DirectoryEventHandler.class);
when(dirEventhandler.onEvent(locations[0],
null, 0, false)).thenReturn(new ResourceId(1L, ""));