METHOD_0 ( ) { final org . kie . workbench . common . IDENT_0 . client . IDENT_1 . IDENT_2 item = mock ( org . kie . workbench . common . IDENT_0 . client . IDENT_1 . IDENT_2 . class ) ; when ( IDENT_3 . METHOD_1 ( node ) ) . thenReturn ( true ) ; when ( IDENT_3 . METHOD_2 ( node ) ) . thenReturn ( item ) ; final java . util . List < org . kie . workbench . common . IDENT_0 . client . IDENT_1 . IDENT_2 > IDENT_4 = factory . METHOD_3 ( node ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( org . kie . workbench . common . IDENT_5 . core . graph . Node ) { final java . util . List < org . kie . workbench . common . IDENT_0 . client . IDENT_1 . IDENT_2 > IDENT_4 = new java . util . ArrayList ( ) ; if ( METHOD_1 ( node ) ) { IDENT_4 . add ( IDENT_3 . METHOD_2 ( node ) ) ; } return IDENT_4 ; }
org . junit . Assert . assertEquals ( singletonList ( item ) , IDENT_4 )