METHOD_0 ( ) { @ com . IDENT_0 . internal . IDENT_1 . IDENT_2 . resources . METHOD_1 ( STRING_0 ) java . util . Collection < com . IDENT_0 . IDENT_1 . model . IDENT_3 > resources = mock ( java . util . Collection . class ) ; when ( client . create ( any ( com . IDENT_0 . IDENT_1 . model . IDENT_4 . class ) , anyString ( ) ) ) . thenReturn ( resources ) ; when ( client . METHOD_2 ( ) ) . thenReturn ( new com . IDENT_0 . internal . IDENT_1 . METHOD_3 ( client ) { } ) ; com . IDENT_0 . IDENT_1 . model . template . IDENT_5 template = new com . IDENT_0 . internal . IDENT_1 . METHOD_3 ( client ) { } . create ( IDENT_6 . IDENT_7 . METHOD_4 ( ) ) ; "<AssertPlaceHolder>" ; verify ( client ) . create ( any ( com . IDENT_0 . IDENT_1 . model . IDENT_4 . class ) , eq ( com . IDENT_0 . internal . IDENT_1 . IDENT_2 . resources . IDENT_8 . IDENT_9 ) ) ; } apply ( com . IDENT_0 . IDENT_1 . model . template . IDENT_5 ) { com . IDENT_0 . IDENT_1 . model . IDENT_4 resources = client . METHOD_2 ( ) . create ( template . METHOD_5 ( ) , IDENT_10 . IDENT_11 ) ; resources . addAll ( template . METHOD_6 ( ) ) ; return client . create ( resources , this . IDENT_12 ) ; }
org . junit . Assert . assertEquals ( resources , IDENT_2 . apply ( template ) )