wstServer.waitForServerToStart();
IProject contentProject = projectRule.getProject();
ProjectAdapter project = new ProjectAdapter(contentProject);
project.addNatures("org.eclipse.wst.common.project.facet.core.nature");
InputStream contentXml = getClass().getResourceAsStream("content-nested-structure.xml");
<BUG>try {
project.createOrUpdateFile(Path.fromPortableString("jcr_root/content/test-root/en.xml"),

contentXml);
} finally {
IOUtils.closeQuietly(contentXml);
}</BUG>
project.installFacet("sling.content", "1.0");

wstServer.waitForServerToStart();
IProject contentProject = projectRule.getProject();
ProjectAdapter project = new ProjectAdapter(contentProject);
project.addNatures("org.eclipse.wst.common.project.facet.core.nature");
InputStream contentXml = getClass().getResourceAsStream("content-nested-structure.xml");
project.createOrUpdateFile(Path.fromPortableString("jcr_root/content/test-root/en.xml"), contentXml);
project.installFacet("sling.content", "1.0");
