METHOD_0 ( ) { final java . util . List < java . lang . String > IDENT_0 = new java . util . METHOD_1 ( ) ; org . IDENT_1 . core . IDENT_2 . service . IDENT_3 < ? , ? > IDENT_4 = new org . IDENT_1 . core . IDENT_2 . service . IDENT_3 < org . IDENT_1 . core . IDENT_2 . service . request . IDENT_5 , org . IDENT_1 . core . IDENT_2 . service . response . Response > ( ) { { this . IDENT_6 = org . mockito . Mockito . mock ( org . IDENT_1 . core . IDENT_2 . service . api . server . IDENT_7 . class ) ; } @ org . IDENT_1 . core . IDENT_2 . service . Override public org . IDENT_1 . core . IDENT_2 . service . response . Response exec ( org . IDENT_1 . core . IDENT_2 . service . request . IDENT_5 request , javax . persistence . IDENT_8 em ) throws org . IDENT_1 . core . IDENT_2 . service . Exception { METHOD_2 ( this :: IDENT_9 ) ; IDENT_0 . add ( STRING_0 ) ; return null ; } MOD_0 org . IDENT_1 . core . IDENT_2 . service . response . Response METHOD_3 ( org . IDENT_1 . core . IDENT_2 . service . response . Response r , javax . persistence . IDENT_8 em ) { METHOD_2 ( ( ) -> { IDENT_0 . add ( STRING_1 ) ; return null ; } ) ; IDENT_0 . add ( STRING_2 ) ; return null ; } @ org . IDENT_1 . core . IDENT_2 . service . Override MOD_1 javax . persistence . IDENT_8 METHOD_4 ( ) { return org . IDENT_1 . core . IDENT_2 . service . IDENT_10 . this . IDENT_11 ; } @ org . IDENT_1 . core . IDENT_2 . service . Override MOD_1 org . osgi . service . transaction . control . IDENT_12 METHOD_5 ( ) throws org . IDENT_1 . core . IDENT_2 . service . IDENT_13 , org . IDENT_1 . core . IDENT_2 . service . exceptions . IDENT_14 { return org . IDENT_1 . core . IDENT_2 . service . IDENT_10 . this . IDENT_15 ; } } ; IDENT_4 . METHOD_6 ( null ) ; java . lang . String [ ] expected = new java . lang . String [ ] { STRING_0 , STRING_2 , STRING_1 } ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( this . IDENT_16 , org . mockito . Mockito . times ( 3 ) ) . METHOD_7 ( ) ; org . mockito . Mockito . verify ( this . IDENT_16 , org . mockito . Mockito . times ( 3 ) ) . commit ( ) ; } METHOD_6 ( IDENT_17 extends org . IDENT_1 . core . IDENT_2 . service . request . IDENT_5 ) { org . IDENT_1 . core . IDENT_2 . service . IDENT_3 . log . info ( ( ( ( ( ( STRING_3 + ( this . getClass ( ) . METHOD_8 ( ) ) ) + STRING_4 ) + ( this . IDENT_6 . METHOD_9 ( ) ) ) + STRING_5 ) + request ) ) ; if ( org . IDENT_1 . core . server . IDENT_18 . METHOD_10 ( ) ) { org . IDENT_1 . core . IDENT_2 . service . IDENT_3 . log . warn ( ( ( STRING_6 + ( org . IDENT_1 . core . IDENT_2 . util . IDENT_19 . METHOD_11 ( ) ) ) + STRING_7 ) ) ; throw new org . IDENT_1 . core . IDENT_2 . service . exceptions . METHOD_12 ( ( ( org . IDENT_1 . core . server . IDENT_18 . IDENT_20 ) + STRING_8 ) ) ; } if ( ( this . em ) == null ) { this . em = METHOD_4 ( ) ; } org . osgi . service . transaction . control . IDENT_12 IDENT_21 = METHOD_5 ( ) ; IDENT_22 response = null ; try { response = IDENT_21 . METHOD_13 ( ( ) -> exec ( request , this . em ) ) ; } catch ( org . osgi . service . transaction . control . IDENT_23 e ) { METHOD_14 ( e . METHOD_15 ( ) ) ; } org . IDENT_1 . core . IDENT_2 . service . IDENT_24 < IDENT_22 > IDENT_25 ; while ( ( IDENT_25 = METHOD_16 ( ) ) != null ) { try { final IDENT_22 IDENT_26 = response ; final org . IDENT_1 . core . IDENT_2 . service . IDENT_24 < IDENT_22 > IDENT_27 = IDENT_25 ; response = IDENT_21 . METHOD_13 ( ( ) -> IDENT_27 . METHOD_6 ( IDENT_26 , this . em ) ) ; } catch ( org . osgi . service . transaction . control . IDENT_23 e ) { METHOD_14 ( e . METHOD_15 ( ) ) ; } } org . IDENT_1 . core . IDENT_2 . service . IDENT_3 . log . info ( ( STRING_9 + response ) ) ; return response ; }
org . junit . Assert . assertArrayEquals ( expected , IDENT_0 . toArray ( new java . lang . String [ 0 ] ) )