METHOD_0 ( ) { MOD_0 class IDENT_0 extends com . IDENT_1 . servlet . IDENT_2 . IDENT_3 { @ com . IDENT_1 . servlet . METHOD_1 ( name = STRING_0 ) MOD_0 void METHOD_2 ( java . lang . String IDENT_4 ) ; } IDENT_0 servlet = mock ( IDENT_0 . class ) ; javax . servlet . IDENT_5 config = mock ( javax . servlet . IDENT_5 . class ) ; when ( config . METHOD_3 ( ) ) . thenReturn ( STRING_1 ) ; when ( config . METHOD_4 ( ) ) . thenReturn ( java . util . Collections . METHOD_5 ( java . util . Arrays . asList ( STRING_2 ) ) ) ; when ( config . METHOD_6 ( STRING_2 ) ) . thenReturn ( STRING_2 ) ; when ( config . METHOD_6 ( STRING_0 ) ) . thenReturn ( STRING_3 ) ; com . IDENT_1 . servlet . IDENT_6 . METHOD_7 ( servlet , config ) ; "<AssertPlaceHolder>" ; verify ( servlet , times ( 1 ) ) . METHOD_2 ( STRING_3 ) ; } METHOD_7 ( javax . servlet . IDENT_7 , javax . servlet . IDENT_5 ) { new com . IDENT_1 . servlet . IDENT_6 . METHOD_8 ( IDENT_8 , IDENT_9 . METHOD_3 ( ) ) . METHOD_7 ( com . IDENT_1 . servlet . IDENT_10 . METHOD_9 ( IDENT_9 ) ) ; }
org . junit . Assert . assertEquals ( servlet . IDENT_4 , STRING_2 )