{
Properties props = TestEngine.getTestProperties();
props.setProperty( "jspwiki.cachingProvider.cacheCheckInterval", "2" );
TestEngine engine = new TestEngine( props );
String dir = props.getProperty( FileSystemProvider.PROP_PAGEDIR );
File f = new File( dir, "Testi.txt" );
String content = "[fuufaa]";
PrintWriter out = new PrintWriter( new FileWriter(f) );
FileUtil.copyContents( new StringReader(content), out );
out.close();
Thread.sleep( 4000L ); // Make sure we wait long enough
WikiPage p = engine.getPage( "Testi" );
assertNotNull( "page did not exist?", p );
String text = engine.getText( "Testi");
assertEquals("text", "[fuufaa]", text );
// TODO: ReferenceManager check as well
}