METHOD_0 ( ) { org . apache . IDENT_0 . plugin . model . IDENT_1 IDENT_2 = METHOD_1 ( ) ; java . lang . String IDENT_3 = STRING_0 ; java . util . Set < java . lang . String > IDENT_4 = new java . util . HashSet < java . lang . String > ( ) ; IDENT_4 . add ( STRING_1 ) ; IDENT_4 . add ( STRING_2 ) ; java . util . List < org . apache . IDENT_0 . plugin . model . IDENT_5 . IDENT_6 > IDENT_7 = new java . util . ArrayList < org . apache . IDENT_0 . plugin . model . IDENT_5 . IDENT_6 > ( ) ; org . apache . IDENT_0 . plugin . model . IDENT_5 . IDENT_6 IDENT_8 = new org . apache . IDENT_0 . plugin . model . IDENT_5 . METHOD_2 ( ) ; IDENT_8 . METHOD_3 ( STRING_3 ) ; IDENT_8 . setName ( STRING_4 ) ; IDENT_8 . METHOD_4 ( null ) ; IDENT_7 . add ( IDENT_8 ) ; org . apache . IDENT_0 . entity . IDENT_9 IDENT_10 = METHOD_5 ( ) ; org . apache . IDENT_0 . entity . IDENT_11 IDENT_12 = METHOD_6 ( ) ; org . apache . IDENT_0 . db . IDENT_13 IDENT_14 = org . mockito . Mockito . mock ( org . apache . IDENT_0 . db . IDENT_13 . class ) ; org . apache . IDENT_0 . db . IDENT_15 IDENT_16 = org . mockito . Mockito . mock ( org . apache . IDENT_0 . db . IDENT_15 . class ) ; org . mockito . Mockito . when ( IDENT_17 . METHOD_7 ( IDENT_18 ) ) . thenReturn ( IDENT_19 ) ; org . mockito . Mockito . when ( IDENT_20 . METHOD_8 ( ) ) . thenReturn ( true ) ; org . mockito . Mockito . when ( IDENT_20 . METHOD_9 ( ) ) . thenReturn ( IDENT_3 ) ; org . mockito . Mockito . when ( IDENT_21 . METHOD_10 ( ) ) . thenReturn ( IDENT_16 ) ; org . mockito . Mockito . when ( IDENT_16 . METHOD_11 ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( METHOD_6 ) ; org . mockito . Mockito . when ( IDENT_21 . METHOD_12 ( ) ) . thenReturn ( IDENT_14 ) ; org . mockito . Mockito . when ( IDENT_14 . METHOD_13 ( METHOD_6 . getType ( ) ) ) . thenReturn ( IDENT_10 ) ; org . apache . IDENT_0 . plugin . model . IDENT_1 IDENT_22 = IDENT_23 . METHOD_14 ( METHOD_1 ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_17 ) . METHOD_7 ( IDENT_18 ) ; } METHOD_14 ( org . apache . IDENT_0 . plugin . model . IDENT_1 ) { if ( org . apache . IDENT_0 . rest . IDENT_24 . LOG . METHOD_15 ( ) ) { org . apache . IDENT_0 . rest . IDENT_24 . LOG . debug ( ( ( STRING_5 + policy ) + STRING_6 ) ) ; } org . apache . IDENT_0 . plugin . model . IDENT_1 ret = null ; org . apache . IDENT_0 . plugin . util . IDENT_25 IDENT_26 = null ; try { if ( org . apache . IDENT_0 . plugin . util . IDENT_25 . METHOD_16 ( org . apache . IDENT_0 . rest . IDENT_24 . IDENT_27 ) ) { IDENT_26 = org . apache . IDENT_0 . plugin . util . IDENT_25 . METHOD_17 ( org . apache . IDENT_0 . rest . IDENT_24 . IDENT_27 , ( ( STRING_7 + ( policy . getId ( ) ) ) + STRING_6 ) ) ; } org . apache . IDENT_0 . plugin . model . validation . IDENT_28 validator = IDENT_17 . METHOD_7 ( IDENT_18 ) ; validator . validate ( policy , IDENT_29 . IDENT_30 , IDENT_20 . METHOD_8 ( ) ) ; METHOD_18 ( policy ) ; IDENT_20 . METHOD_19 ( ) ; ret = IDENT_18 . METHOD_14 ( policy ) ; } catch ( javax . ws . rs . IDENT_31 IDENT_32 ) { throw IDENT_32 ; } catch ( java . lang . Throwable IDENT_32 ) { org . apache . IDENT_0 . rest . IDENT_24 . LOG . error ( ( ( STRING_8 + policy ) + STRING_9 ) , IDENT_32 ) ; throw IDENT_33 . METHOD_20 ( IDENT_32 . getMessage ( ) ) ; } finally { org . apache . IDENT_0 . plugin . util . IDENT_25 . log ( IDENT_26 ) ; } if ( org . apache . IDENT_0 . rest . IDENT_24 . LOG . METHOD_15 ( ) ) { org . apache . IDENT_0 . rest . IDENT_24 . LOG . debug ( ( ( ( STRING_10 + policy ) + STRING_11 ) + ret ) ) ; } return ret ; }
org . junit . Assert . assertNull ( IDENT_22 )