final File spillDir = spillParentDir.newFolder(); when(config.getStringList(DremioConfig.SPILLING_PATH_STRING)).thenReturn(ImmutableList.of(spillDir.getPath())); final NoopScheduler schedulerService = new NoopScheduler(); final SpillService spillService = new SpillServiceImpl(config, new TestSpillServiceOptions(), new Provider<SchedulerService>() {