String tableName = "JCS_TEST";
attributes.setDriverClassName( "org.gjt.mm.mysql.Driver" );
attributes.setTableName( tableName );
attributes.setBalkDuringOptimization( true );
TableState tableState = new TableState( tableName );
tableState.setState( TableState.OPTIMIZATION_RUNNING );
MySQLDiskCache cache = new MySQLDiskCache( attributes, tableState );
Object result = cache.doGet( "myKey" );
assertNull( "The result should be null", result );