//Try building the second KieModule
KieServices kieServices = KieServices.Factory.get();
KieFileSystem kieFileSystem = kieServices.newKieFileSystem();
InputStream is = new FileInputStream( pomFile2 );
KieModuleModel kproj2 = ks.newKieModuleModel();
kieFileSystem.write( "pom.xml",
KieServices.Factory.get().getResources().newInputStreamResource( is ) );
kieFileSystem.writeKModuleXML( kproj2.toXML() );
kieFileSystem.write( "src/main/resources/rule.drl",
createDRLWithImport( "rule1" ) );
KieBuilder kieBuilder = kieServices.newKieBuilder( kieFileSystem );
kieBuilder.buildAll();
assertTrue( kieBuilder.getResults().getMessages().isEmpty() );