question: public void testSubmitNullCallable ( ) { ExecutorService e = new ForkJoinPool ( 1 ) ; PoolCleaner cleaner = null ; try { cleaner = cleaner ( e ) ; try { @ SuppressWarnings ( "unused" ) Future < String > future = e . submit ( ( Callable < String > ) null ) ; shouldThrow ( ) ; } catch ( NullPointerException success ) { } } finally { if ( cleaner != null ) { cleaner . close ( ) ; } } }
target:  submit(null callable) throws NullPointerException