IFolder outputFolder = getProject().getFolder("output");
assertNotExists(outputFolder);
// do the action
runAction(new GenerateCodeAction(), targetModel);
// the output folder should now be created
assertExists(outputFolder);
// a sitemap should have been created