question: public void testSubmitCallable ( ) throws Throwable { ExecutorService e = new ForkJoinPool ( 1 ) ; PoolCleaner cleaner = null ; try { cleaner = cleaner ( e ) ; Future < String > future = e . submit ( new StringTask ( ) ) ; assertSame ( TEST_STRING , future . get ( ) ) ; assertTrue ( future . isDone ( ) ) ; assertFalse ( future . isCancelled ( ) ) ; } finally { if ( cleaner != null ) { cleaner . close ( ) ; } } }
target:  Completed submit(callable) returns result