METHOD_0 ( ) { org . IDENT_0 . components . IDENT_1 . model . IDENT_2 IDENT_3 = new org . IDENT_0 . components . IDENT_1 . model . METHOD_1 ( STRING_0 ) ; IDENT_3 . METHOD_2 ( IDENT_4 ) ; IDENT_3 . METHOD_3 ( STRING_1 ) ; IDENT_3 . METHOD_4 ( IDENT_4 . METHOD_5 ( ) ) ; IDENT_3 . METHOD_6 ( ) . METHOD_7 ( IDENT_5 . IDENT_6 ) ; org . IDENT_0 . core . admin . service . IDENT_7 IDENT_8 = METHOD_8 ( ) ; when ( IDENT_8 . METHOD_9 ( IDENT_4 . METHOD_5 ( ) . getId ( ) , IDENT_4 . METHOD_10 ( ) ) ) . thenReturn ( new java . lang . String [ ] { IDENT_9 . IDENT_10 . name ( ) } ) ; org . IDENT_0 . components . IDENT_1 . repository . IDENT_11 IDENT_12 = METHOD_11 ( ) ; when ( IDENT_12 . METHOD_12 ( any ( org . IDENT_0 . components . IDENT_1 . model . IDENT_13 . class ) ) ) . METHOD_13 ( new org . mockito . internal . IDENT_14 . IDENT_15 . METHOD_14 ( org . IDENT_0 . util . IDENT_16 . asList ( IDENT_3 ) ) ) ; org . IDENT_0 . core . IDENT_17 . model . IDENT_18 validation = new org . IDENT_0 . core . IDENT_17 . model . METHOD_15 ( org . IDENT_0 . core . IDENT_17 . IDENT_5 . IDENT_19 , METHOD_16 ( ) , new java . util . Date ( ) , STRING_2 ) ; org . IDENT_0 . components . IDENT_1 . model . METHOD_1 actual = IDENT_4 . METHOD_17 ( ) . validate ( IDENT_3 , validation ) ; verify ( IDENT_12 , times ( 1 ) ) . save ( eq ( actual ) ) ; "<AssertPlaceHolder>" ; verify ( METHOD_18 ( ) , times ( 1 ) ) . METHOD_19 ( any ( org . IDENT_0 . components . IDENT_1 . IDENT_20 . IDENT_21 . class ) ) ; verify ( IDENT_12 , times ( 0 ) ) . index ( actual ) ; } METHOD_6 ( ) { if ( ( IDENT_22 ) == null ) { IDENT_22 = org . IDENT_0 . core . IDENT_23 . validation . IDENT_24 . METHOD_20 ( IDENT_3 ) ; } return IDENT_22 ; }
org . junit . Assert . assertThat ( actual . METHOD_6 ( ) . getStatus ( ) , is ( IDENT_5 . IDENT_19 ) )