### Question:
VerbosePageCacheTracer extends DefaultPageCacheTracer { @Override public void mappedFile( File file ) { log.info( format( "Map file: '%s'.", file.getName() ) ); super.mappedFile( file ); } VerbosePageCacheTracer( Log log, SystemNanoClock clock ); @Override void mappedFile( File file ); @Override void unmappedFile( File file ); @Override MajorFlushEvent beginCacheFlush(); @Override MajorFlushEvent beginFileFlush( PageSwapper swapper );  }### Answer:
@Test public void traceFileMap() { VerbosePageCacheTracer tracer = createTracer(); tracer.mappedFile( new File( "mapFile" ) ); logProvider.formattedMessageMatcher().assertContains( "Map file: 'mapFile'." ); }