Assert.assertEquals("a000test_*.*", internalFile);
}
@Test
public void testFileMapperToExternalFile() {
FileMapper fileMapper = new SubFolderFileMapper();
String externalFile = fileMapper.getExternalFile(URI
.create("file:a0/00/te/st/a000test/a000test_dc.xml"));
Assert.assertEquals("DC", externalFile);
externalFile = fileMapper.getExternalFile(URI
.create("file:a0/00/te/st/a000test/a000test_full_dc.xml"));
Assert.assertEquals("FULL_DC", externalFile);
externalFile = fileMapper.getExternalFile(URI
.create("file:a0/00/te/st/a000test/dc/a000test_00001.xml"));
Assert.assertEquals("DC", externalFile);
}