@Test
public void testGenerate() throws GeneratorException {

    new GeneratorMain(new String[]{
        "-c", TestApplication.class.getName(),
        "-d", "destdir",
        "-l", "en_US",
        "-l", "fr_FR"
    }) {
        @Override
        protected void generate(SkillModelSupplier skillModelSupplier, File destdir, List<Locale> locales) throws GeneratorException {
            assertEquals(TestApplication.class, skillModelSupplier.getClass());
            assertEquals(new File("destdir"), destdir);
            assertEquals(Arrays.asList(Locales.en_US, Locales.fr_FR), locales);
        }
    }.run();
}