public void testGreetingWithoutPom() throws Exception {
// lookupMojo needs the actual version as it seems to use the Maven local repo to lookup stuff...
String version = new XPathGetter(XmlUtils.loadXml(JuUrl.toUrl(JuUrl.existingFile("pom.xml")))).getSingle("project/parent/version");
// Default value setting will not work when using explicit (or no) PlexusConfiguration
PlexusConfiguration config = new DefaultPlexusConfiguration("configuration");
config.addChild("greeting", "NoPomWorld");
GreetMojo greetMojo = (GreetMojo) this.lookupMojo("ch.inftec.ju", "ju-maven-plugin", version, "greet", config);
Assert.assertEquals("NoPomWorld", greetMojo.getGreeting());
greetMojo.execute();
}