METHOD_0 ( ) { doReturn ( true ) . when ( IDENT_0 ) . isEmpty ( ) ; doReturn ( future ) . when ( IDENT_1 ) . METHOD_1 ( IDENT_2 ) ; doReturn ( future ) . when ( IDENT_1 ) . METHOD_2 ( IDENT_0 , IDENT_2 ) ; "<AssertPlaceHolder>" ; final org . mockito . IDENT_3 order = METHOD_3 ( IDENT_0 , IDENT_1 ) ; order . verify ( IDENT_0 ) . isEmpty ( ) ; order . verify ( IDENT_1 ) . METHOD_1 ( IDENT_2 ) ; order . verify ( IDENT_1 , METHOD_4 ( ) ) . METHOD_2 ( IDENT_0 , IDENT_2 ) ; } collect ( java . util . Collection , java . util . function . IDENT_4 ) { if ( IDENT_5 . isEmpty ( ) ) { return METHOD_1 ( IDENT_2 ) ; } return METHOD_2 ( IDENT_5 , IDENT_2 ) ; }
org . junit . Assert . assertEquals ( future , IDENT_1 . collect ( IDENT_0 , IDENT_2 ) )