File saveFile1 = File.createTempFile( "testLog1", "log" );
formats.setSelectedIndex( 1 );
action.exportRequestLog( saveFile1 );
File saveFile2 = File.createTempFile( "testLog2", "log" );
// table cleared after previous log, so need to reset db (can't truncate)
TestDatabase db2 = new TestDatabase();
db2.fixture( "requestLogs" );
action = new RequestLogExport( null, db2, null, formats );
formats.setSelectedIndex( 2 );
action.exportRequestLog( saveFile1 );
assertFilesNotEqual( saveFile1, saveFile2 );
}