@Test
public void testLogToFile() throws Exception {

  File tempFolder = testFolder.newFolder("logging.test");
  EasyMock.expect(instance.getConfiguration("directory")).andReturn(tempFolder.getAbsolutePath()).anyTimes();
  EasyMock.expect(instance.getConfiguration("mediapackage-xml")).andReturn("true").anyTimes();
  EasyMock.expect(instance.getConfiguration("workflowinstance-xml")).andReturn("true").anyTimes();
  EasyMock.replay(workflow, instance);
  operation.start(workflow, null);
  Assert.assertEquals(3, FileUtils.listFilesAndDirs(tempFolder, TrueFileFilter.TRUE, TrueFileFilter.TRUE).size());
}