question: public void test_singleResourceLocking_serialized_waitsFor_lowConcurrency2 ( ) throws Exception { final Properties properties = new Properties ( ) ; final int nthreads = 2 ; final int ntasks = 1000 ; properties . setProperty ( TestOptions . CORE_POOL_SIZE , "" + nthreads ) ; properties . setProperty ( TestOptions . NTASKS , "" + ntasks ) ; properties . setProperty ( TestOptions . NRESOURCES , "1" ) ; properties . setProperty ( TestOptions . MIN_LOCKS , "1" ) ; properties . setProperty ( TestOptions . MAX_LOCKS , "1" ) ; properties . setProperty ( TestOptions . PREDECLARE_LOCKS , "false" ) ; properties . setProperty ( TestOptions . SORT_LOCK_REQUESTS , "false" ) ; final Result result = doComparisonTest ( properties ) ; assertEquals ( "ndeadlock" , 0 , Integer . parseInt ( result . get ( "ndeadlock" ) ) ) ; assertEquals ( "nsuccess" , ntasks , Integer . parseInt ( result . get ( "nsuccess" ) ) ) ; assertEquals ( "maxrunning" , 1 , Integer . parseInt ( result . get ( "maxrunning" ) ) ) ; }
target:  Test where each operation locks only a single resource and there is only one resource to be locked so that all operations MUST be serialized.