{
File pluginXmlFile = getTestFile( "src/test/resources/unit/interpolated-site/pom.xml" );
assertNotNull( pluginXmlFile );
assertTrue( pluginXmlFile.exists() );
SiteMojo siteMojo = (SiteMojo) lookupMojo( "site", pluginXmlFile );
assertNotNull( siteMojo );
File descriptorFile = getTestFile( "src/test/resources/unit/interpolated-site/src/site/site.xml" );
assertNotNull( descriptorFile );
assertTrue( descriptorFile.exists() );
String siteDescriptorContent = FileUtils.fileRead( descriptorFile );
assertNotNull( siteDescriptorContent );
assertTrue( siteDescriptorContent.contains( "${project.name}" ) );
SiteTool siteTool = (SiteTool) lookup( SiteTool.ROLE );
siteDescriptorContent =
siteTool.getInterpolatedSiteDescriptorContent( new HashMap<String, String>(), siteMojo.getProject(),
siteDescriptorContent );
assertNotNull( siteDescriptorContent );
assertTrue( !siteDescriptorContent.contains( "${project.name}" ) );
}