// create directory by hand, as the War plugin is not actually executing in our test
defaultWebappDirectory.mkdirs();
log.info("Default webapp dir: " + defaultWebappDirectory.getAbsolutePath());
// Get and execute the rebel task
RebelGenerateTask task = (RebelGenerateTask) project.getTasks().getByName(RebelPlugin.GENERATE_REBEL_TASK_NAME);
task.skipWritingRebelXml();
task.generate();
RebelMainModel model = task.getRebelModel();
// Check the classpath directories
List<RebelClasspathResource> classpathDirs = model.getClasspathDirs();
Assert.assertEquals(2, classpathDirs.size());