METHOD_0 ( ) { final org . kie . workbench . common . IDENT_0 . core . graph . IDENT_1 graph = mock ( org . kie . workbench . common . IDENT_0 . core . graph . IDENT_1 . class ) ; final org . kie . workbench . common . IDENT_0 . core . graph . Node IDENT_2 = mock ( org . kie . workbench . common . IDENT_0 . core . graph . Node . class ) ; final org . kie . workbench . common . IDENT_0 . core . graph . Node IDENT_3 = mock ( org . kie . workbench . common . IDENT_0 . core . graph . Node . class ) ; final java . lang . IDENT_4 < org . kie . workbench . common . IDENT_0 . core . graph . Node > IDENT_5 = asList ( IDENT_2 , IDENT_3 ) ; when ( graph . nodes ( ) ) . thenReturn ( IDENT_5 ) ; doReturn ( java . util . Optional . of ( graph ) ) . when ( IDENT_6 ) . METHOD_1 ( ) ; final java . util . List < org . kie . workbench . common . IDENT_0 . core . graph . Node > IDENT_7 = IDENT_6 . METHOD_2 ( ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( ) { final java . util . List < org . kie . workbench . common . IDENT_0 . core . graph . Node > nodes = new java . util . ArrayList ( ) ; METHOD_1 ( ) . METHOD_3 ( ( graph ) -> { graph . nodes ( ) . METHOD_4 ( nodes :: add ) ; } ) ; return nodes ; }
org . junit . Assert . assertEquals ( IDENT_5 , IDENT_7 )