METHOD_0 ( ) { org . apache . IDENT_0 . plugin . model . IDENT_1 IDENT_2 = METHOD_1 ( ) ; java . lang . Long IDENT_3 = 1L ; IDENT_2 . setId ( IDENT_3 ) ; when ( IDENT_4 . METHOD_2 ( ) ) . thenReturn ( true ) ; when ( IDENT_5 . METHOD_3 ( IDENT_6 , IDENT_7 ) ) . thenReturn ( validator ) ; METHOD_4 ( ) . when ( validator ) . validate ( IDENT_2 , IDENT_8 . IDENT_9 . IDENT_10 ) ; when ( IDENT_7 . METHOD_5 ( IDENT_2 ) ) . thenReturn ( IDENT_2 ) ; when ( IDENT_11 . METHOD_6 ( org . mockito . Mockito . anyString ( ) ) ) . METHOD_7 ( new javax . ws . rs . METHOD_8 ( ) ) ; IDENT_12 . expect ( javax . ws . rs . METHOD_8 . class ) ; org . apache . IDENT_0 . plugin . model . IDENT_1 IDENT_13 = IDENT_14 . METHOD_9 ( INT_0 , IDENT_2 ) ; "<AssertPlaceHolder>" ; verify ( validator , times ( 1 ) ) . validate ( IDENT_2 , IDENT_8 . IDENT_9 . IDENT_10 ) ; } getId ( ) { return id ; }
org . junit . Assert . assertEquals ( IDENT_2 . getId ( ) , IDENT_13 . getId ( ) )