question: public void testMinimalCompletionStage ( ) { CompletableFuture < Integer > f = new CompletableFuture < > ( ) ; CompletionStage < Integer > g = f . minimalCompletionStage ( ) ; AtomicInteger x = new AtomicInteger ( 0 ) ; AtomicReference < Throwable > r = new AtomicReference < Throwable > ( ) ; checkIncomplete ( f ) ; g . whenComplete ( null ) ; f . complete ( 1 ) ; checkCompletedNormally ( f , 1 ) ; assertEquals ( x . get ( ) , 1 ) ; assertNull ( r . get ( ) ) ; }
target:  minimalCompletionStage returns a CompletableFuture that is completed normally, with the same value, when source is.