public void testRewriteRoot() throws Exception {
String pattern = "test-src/solution/test/reporting/system/{0}/param";
PentahoURLRewriter rewriter = new PentahoURLRewriter( pattern );
File dataDirectory = new File( "/" );
FileRepository dataRepository = new FileRepository( dataDirectory );
File contentEntryBackend = new File( "test-src/solution/test/reporting/contentEntryBackend" );
File dataEntityBackend = new File( "test-src/solution/test/reporting/dataEntityBackend" );
ContentEntity contentEntry = new FileContentItem( dataRepository.getRoot(), contentEntryBackend );
ContentEntity dataEntity = new FileContentItem( dataRepository.getRoot(), dataEntityBackend );
String result = rewriter.rewrite( contentEntry, dataEntity );
assertEquals( "test-src/solution/test/reporting/system/dataEntityBackend/param", result );
}