@Test
public void testExecute() throws Exception {

    final File testOutDir = new File(testOutBaseDir, "testExecute");
    FileUtils.deleteDirectory(testOutDir);
    final File projectRoot = new File(testOutDir, "content-package");
    FileUtils.copyDirectory(new File(srcDir, "content-package"), projectRoot);
    WebsterMojo mojo = newMojo();
    final File archiveRoot = new File(projectRoot, "src/main/content");
    final File tempDir = new File(testOutDir, "webster-tmp");
    mojo.baseDir = projectRoot;
    mojo.websterTempDirectory = tempDir;
    mojo.websterArchiveRoot = archiveRoot;
    mojo.websterTargets = obj().key("nodetypes", obj()).key("privileges", obj()).get();
    mojo.websterOakRunArgs = "memory";
    mojo.execute();
    assertTrue("expect nodetypes", new File(archiveRoot, "META-INF/vault/nodetypes.cnd").exists());
    assertTrue("expect privileges", new File(archiveRoot, "META-INF/vault/privileges.xml").exists());
}