METHOD_0 ( ) { org . IDENT_0 . api . mockito . IDENT_1 . METHOD_1 ( org . IDENT_2 . core . IDENT_3 . model . IDENT_4 . class ) ; org . IDENT_2 . util . IDENT_5 IDENT_6 = new org . IDENT_2 . util . METHOD_2 ( STRING_0 , STRING_1 ) ; org . IDENT_2 . core . IDENT_7 . IDENT_8 . control . IDENT_9 IDENT_10 = org . IDENT_0 . api . mockito . IDENT_1 . mock ( org . IDENT_2 . core . IDENT_7 . IDENT_8 . control . IDENT_9 . class ) ; java . util . Collection < com . IDENT_11 . IDENT_12 . node . model . IDENT_13 > IDENT_14 = new java . util . ArrayList < com . IDENT_11 . IDENT_12 . node . model . IDENT_13 > ( java . util . Arrays . asList ( new com . IDENT_11 . IDENT_12 . node . model . METHOD_3 ( STRING_0 , STRING_1 ) , new com . IDENT_11 . IDENT_12 . node . model . METHOD_3 ( STRING_2 , STRING_3 0 ) , new com . IDENT_11 . IDENT_12 . node . model . METHOD_3 ( STRING_3 1 , STRING_4 ) ) ) ; java . util . Collection < org . IDENT_2 . core . IDENT_7 . IDENT_8 . model . IDENT_15 > IDENT_16 = new java . util . ArrayList < org . IDENT_2 . core . IDENT_7 . IDENT_8 . model . IDENT_15 > ( IDENT_14 . size ( ) ) ; for ( com . IDENT_11 . IDENT_12 . node . model . METHOD_3 IDENT_17 : IDENT_14 ) { IDENT_16 . add ( new org . IDENT_2 . core . IDENT_7 . IDENT_8 . model . METHOD_4 ( IDENT_17 . getId ( ) , IDENT_17 . METHOD_5 ( ) ) ) ; } org . IDENT_0 . api . mockito . IDENT_1 . when ( IDENT_10 . METHOD_6 ( new org . IDENT_2 . core . IDENT_7 . IDENT_8 . model . METHOD_7 ( STRING_0 , STRING_1 ) ) ) . thenReturn ( IDENT_14 ) ; org . IDENT_0 . api . mockito . IDENT_1 . when ( IDENT_10 . METHOD_8 ( new org . IDENT_2 . core . IDENT_7 . IDENT_8 . model . METHOD_7 ( STRING_0 , STRING_1 ) ) ) . thenReturn ( IDENT_16 ) ; org . IDENT_2 . core . IDENT_7 . IDENT_18 . model . IDENT_19 IDENT_20 = new org . IDENT_2 . core . IDENT_7 . IDENT_18 . model . METHOD_9 ( STRING_5 , STRING_6 ) ; IDENT_20 . METHOD_10 ( INT_0 ) ; org . IDENT_2 . core . IDENT_7 . IDENT_18 . model . IDENT_21 document = new org . IDENT_2 . core . IDENT_7 . IDENT_18 . model . METHOD_11 ( ) ; document . METHOD_12 ( IDENT_20 ) ; document . METHOD_13 ( IDENT_6 . getId ( ) ) ; final java . lang . String token = STRING_7 ; org . IDENT_2 . core . IDENT_3 . security . IDENT_22 resource = new org . IDENT_2 . core . IDENT_3 . security . METHOD_14 ( token , document ) ; org . IDENT_0 . api . mockito . IDENT_1 . METHOD_1 ( org . IDENT_2 . core . IDENT_3 . services . IDENT_23 . class ) ; org . IDENT_0 . api . mockito . IDENT_1 . when ( org . IDENT_2 . core . IDENT_3 . services . IDENT_23 . METHOD_15 ( ) ) . thenReturn ( new com . IDENT_2 . IDENT_3 . mock . METHOD_16 ( token , IDENT_24 ) ) ; org . IDENT_2 . core . IDENT_3 . model . IDENT_25 instance = new org . IDENT_2 . core . IDENT_3 . model . METHOD_17 ( ) ; "<AssertPlaceHolder>" ; } METHOD_18 ( org . IDENT_2 . core . IDENT_3 . security . IDENT_26 ) { try { org . IDENT_2 . core . IDENT_3 . model . IDENT_27 IDENT_28 = org . IDENT_2 . core . IDENT_3 . services . IDENT_23 . METHOD_15 ( ) . METHOD_19 ( resource . METHOD_20 ( ) ) ; return ( ! ( ( IDENT_28 == null ) || ( ! ( IDENT_28 . isValid ( ) ) ) ) ) && ( METHOD_18 ( ( ( T ) ( IDENT_28 ) ) , resource . METHOD_21 ( ) ) ) ; } catch ( java . lang . Exception e ) { return false ; } }
org . junit . Assert . assertThat ( instance . METHOD_18 ( resource ) , org . hamcrest . Matchers . is ( true ) )