final MavenProject mavenProject = new MavenProject();
mavenProject.setPackaging("war");
final File pom = getPom("add-resource-in-execution-pom.xml");
final AddResource addResourceMojo = lookupMojoAndVerify("add-resource", pom);
try {
addResourceMojo.execute();
} catch (Exception expectedToBeThrown) {
assertNotNull(expectedToBeThrown);
}
}