METHOD_0 ( ) { org . bonitasoft . engine . api . IDENT_0 IDENT_1 = org . mockito . Mockito . mock ( org . bonitasoft . engine . api . IDENT_0 . class ) ; org . bonitasoft . engine . search . IDENT_2 IDENT_3 = new org . bonitasoft . engine . search . METHOD_1 ( 0 , INT_0 ) . filter ( IDENT_4 . IDENT_5 , true ) . METHOD_2 ( ) ; org . bonitasoft . engine . search . IDENT_6 < org . bonitasoft . engine . IDENT_7 . User > IDENT_8 = new org . bonitasoft . engine . search . IDENT_6 < org . bonitasoft . engine . IDENT_7 . User > ( ) { public long METHOD_3 ( ) { return 1 ; } public List < org . bonitasoft . engine . IDENT_7 . User > METHOD_4 ( ) { List < org . bonitasoft . engine . IDENT_7 . User > IDENT_9 = new ArrayList < org . bonitasoft . engine . IDENT_7 . User > ( ) ; IDENT_9 . add ( METHOD_5 ( STRING_0 , INT_1 ) ) ; return IDENT_9 ; } } ; org . mockito . Mockito . when ( IDENT_1 . METHOD_6 ( IDENT_3 ) ) . thenReturn ( IDENT_8 ) ; org . bonitasoft . engine . IDENT_7 . IDENT_10 IDENT_11 = new org . bonitasoft . engine . IDENT_7 . impl . METHOD_7 ( ) . METHOD_8 ( STRING_1 ) . METHOD_2 ( ) ; org . mockito . Mockito . when ( IDENT_1 . METHOD_9 ( INT_1 , false ) ) . thenReturn ( IDENT_11 ) ; List < java . lang . Long > IDENT_12 ; List < java . lang . Long > IDENT_13 = new ArrayList < java . lang . Long > ( ) ; IDENT_13 . add ( INT_1 ) ; java . lang . String mail = STRING_1 ; IDENT_12 = org . IDENT_14 . lib . IDENT_15 . IDENT_16 . METHOD_10 ( IDENT_1 , mail ) ; "<AssertPlaceHolder>" ; } METHOD_10 ( org . bonitasoft . engine . api . IDENT_0 , java . lang . String ) { try { java . util . List < java . lang . Long > response = new java . util . ArrayList < java . lang . Long > ( ) ; org . bonitasoft . engine . search . IDENT_2 IDENT_3 = new org . bonitasoft . engine . search . METHOD_1 ( 0 , INT_0 ) . filter ( IDENT_4 . IDENT_5 , true ) . METHOD_2 ( ) ; java . util . List < org . bonitasoft . engine . IDENT_7 . User > IDENT_9 = IDENT_17 . METHOD_6 ( IDENT_3 ) . METHOD_4 ( ) ; for ( int i = 0 ; i < ( IDENT_9 . size ( ) ) ; i ++ ) { org . bonitasoft . engine . IDENT_7 . User IDENT_18 = IDENT_9 . get ( i ) ; java . lang . String IDENT_19 = IDENT_17 . METHOD_9 ( IDENT_18 . getId ( ) , false ) . METHOD_11 ( ) ; if ( ( IDENT_19 != null ) && ( IDENT_19 . equals ( mail ) ) ) { response . add ( IDENT_18 . getId ( ) ) ; } } return response ; } catch ( java . lang . Exception e ) { org . IDENT_14 . lib . IDENT_15 . IDENT_16 . METHOD_12 ( e ) ; return null ; } }
org . junit . Assert . assertEquals ( IDENT_13 , IDENT_12 )