METHOD_0 ( ) { org . opendaylight . IDENT_0 . lib . operations . IDENT_1 transaction = mock ( org . opendaylight . IDENT_0 . lib . operations . IDENT_1 . class ) ; org . opendaylight . IDENT_0 . lib . schema . IDENT_2 schema = mock ( org . opendaylight . IDENT_0 . lib . schema . IDENT_2 . class ) ; java . util . List < org . opendaylight . IDENT_0 . lib . operations . Operation > operations = new java . util . ArrayList ( ) ; org . opendaylight . IDENT_0 . lib . operations . Operation operation = mock ( org . opendaylight . IDENT_0 . lib . operations . IDENT_3 . class ) ; operations . add ( operation ) ; when ( transaction . METHOD_1 ( ) ) . thenReturn ( operations ) ; when ( operation . METHOD_2 ( ) ) . thenReturn ( schema ) ; java . util . List < org . opendaylight . IDENT_0 . lib . operations . IDENT_3 > IDENT_4 = org . opendaylight . IDENT_0 . IDENT_5 . IDENT_0 . IDENT_6 . IDENT_7 . METHOD_3 ( transaction , schema ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( org . opendaylight . IDENT_0 . lib . operations . IDENT_1 , org . opendaylight . IDENT_0 . lib . schema . IDENT_2 ) { java . util . List < org . opendaylight . IDENT_0 . lib . operations . Operation > operations = transaction . METHOD_1 ( ) ; java . util . List < org . opendaylight . IDENT_0 . lib . operations . IDENT_3 > IDENT_4 = new java . util . ArrayList ( ) ; for ( org . opendaylight . IDENT_0 . lib . operations . Operation operation : operations ) { if ( ( operation instanceof org . opendaylight . IDENT_0 . lib . operations . IDENT_3 ) && ( operation . METHOD_2 ( ) . equals ( schema ) ) ) { IDENT_4 . add ( ( ( org . opendaylight . IDENT_0 . lib . operations . IDENT_3 ) ( operation ) ) ) ; } } return IDENT_4 ; }
org . junit . Assert . assertEquals ( operation , IDENT_4 . get ( 0 ) )