METHOD_0 ( ) { IDENT_0 . IDENT_1 = STRING_0 ; handler . IDENT_2 = true ; java . util . List < com . IDENT_3 . IDENT_4 . handler . IDENT_5 . IDENT_6 > events = new java . util . ArrayList < com . IDENT_3 . IDENT_4 . handler . IDENT_5 . IDENT_6 > ( 2 ) ; events . add ( new com . IDENT_3 . IDENT_4 . handler . IDENT_5 . METHOD_1 ( "foo" , 0 ) ) ; events . add ( new com . IDENT_3 . IDENT_4 . handler . IDENT_5 . METHOD_1 ( "bar" , 0 ) ) ; com . IDENT_3 . IDENT_4 . IDENT_7 . IDENT_8 context = new com . IDENT_3 . IDENT_4 . IDENT_7 . METHOD_2 ( ) ; context . METHOD_3 ( STRING_1 ) ; handler . init ( context ) ; com . IDENT_3 . IDENT_4 . IDENT_9 . IDENT_10 IDENT_11 = METHOD_4 ( new com . IDENT_3 . IDENT_4 . IDENT_12 . IDENT_13 . METHOD_5 ( ) ) ; com . IDENT_3 . IDENT_4 . IDENT_9 . IDENT_10 IDENT_14 = METHOD_4 ( new com . IDENT_3 . IDENT_4 . IDENT_12 . IDENT_13 . METHOD_5 ( ) ) ; METHOD_6 ( ) . METHOD_6 ( ) . when ( IDENT_11 ) . add ( any ( ) ) ; METHOD_7 ( new java . lang . IllegalStateException ( STRING_2 ) ) . when ( IDENT_14 ) . add ( any ( ) ) ; com . IDENT_3 . IDENT_4 . IDENT_9 . IDENT_15 IDENT_16 = METHOD_4 ( handler . METHOD_8 ( ) ) ; com . IDENT_3 . IDENT_4 . IDENT_9 . IDENT_17 IDENT_18 = METHOD_4 ( IDENT_16 . METHOD_9 ( ) ) ; when ( IDENT_18 . METHOD_10 ( ) ) . thenReturn ( IDENT_11 , IDENT_14 ) ; IDENT_16 . METHOD_11 ( IDENT_18 ) ; handler . METHOD_12 ( IDENT_16 ) ; handler . handler ( events , context ) ; "<AssertPlaceHolder>" ; } METHOD_13 ( ) { return IDENT_19 ; }
org . junit . Assert . assertEquals ( 1 , IDENT_16 . METHOD_13 ( ) . getValue ( ) )