@Test
public void testFileWithRelativePath() throws IOException
{

  FileUtils.write(new File(testFM.outputDir, dummyDir + dummyFile), FILE_DATA);
  when(testFM.fileMetaDataMock.getFileName()).thenReturn(dummyDir + dummyFile);
  when(testFM.fileMetaDataMock.getRelativePath()).thenReturn(dummyDir + dummyFile);
  when(testFM.fileMetaDataMock.getStitchedFileRelativePath()).thenReturn(dummyDir + dummyFile);
  testFM.underTest.mergeOutputFile(testFM.fileMetaDataMock);
  File statsFile = new File(testFM.outputDir, dummyDir + dummyFile);
  Assert.assertTrue(statsFile.exists() && !statsFile.isDirectory());
  Assert.assertEquals("File size differes", FILE_DATA.length(),
      FileUtils.sizeOf(new File(testFM.outputDir, dummyDir + dummyFile)));
}