@Test
public void testFailedExecutionAudit() throws Exception {

  final ExecuteReportContentHandler handler = new ExecuteReportContentHandler( contentGenerator );
  when( reportComponent.validate() ).thenReturn( true );
  when( reportComponent.execute() ).thenReturn( false );
  handler.createReportContent( outputStream, fileId, path, true, reportComponent, audit );
  verify( audit, times( 1 ) ).audit(
    eq( sessionId ),
    eq( sessionName ),
    eq( path ),
    eq( ReportContentGenerator.class.getName() ),
    eq( handler.getClass().getName() ),
    eq( MessageTypes.INSTANCE_START ),
    eq( instanceId ),
    eq( "" ),
    eq( (float) 0 ),
    eq( contentGenerator )
  );
  verify( audit, times( 1 ) ).audit(
    eq( sessionId ),
    eq( sessionName ),
    eq( path ),
    eq( ReportContentGenerator.class.getName() ),
    eq( handler.getClass().getName() ),
    eq( MessageTypes.FAILED ),
    eq( instanceId ),
    eq( "" ),
    anyFloat(),
    eq( contentGenerator )
  );
}