@Test
public void testGetFiles() throws InvalidSyntaxException {

    Sources sources = new Sources("size", "desc");
    sources.addFiles(Arrays.asList(
            new CfgFile(new File("./src/test/resources/sources-getfiles/toto.txt")),
            new CfgFile(new File("./src/test/resources/sources-getfiles/tata.txt")),
            new CfgFile(new File("./src/test/resources/sources-getfiles/titi.txt"))
    ));
    List<CfgFile> files = sources.getFiles();
    List<String> filesInString = new ArrayList<>(files.size());
    for (CfgFile file : files) {
        filesInString.add(file.getSource().getAbsolutePath());
    }
    Assert.assertArrayEquals(
            "files mismatch",
            Arrays.asList(
                    new File("./src/test/resources/sources-getfiles/titi.txt").getAbsolutePath(),
                    new File("./src/test/resources/sources-getfiles/toto.txt").getAbsolutePath(),
                    new File("./src/test/resources/sources-getfiles/tata.txt").getAbsolutePath()
            ).toArray(),
            filesInString.toArray()
    );
}