METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 IDENT_4 = mock ( com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . class ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_5 state = IDENT_3 . IDENT_5 . IDENT_6 ; METHOD_1 ( ) . when ( IDENT_7 ) . METHOD_2 ( eq ( IDENT_4 ) ) ; when ( transaction . update ( anyString ( ) , org . mockito . Matchers . METHOD_3 ( ) ) ) . thenReturn ( 1 ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 result = repository . METHOD_4 ( IDENT_4 , state ) ; "<AssertPlaceHolder>" ; when ( transaction . update ( anyString ( ) , org . mockito . Matchers . METHOD_3 ( ) ) ) . thenReturn ( 2 ) ; com . googlecode . IDENT_8 . IDENT_9 . IDENT_10 . when ( repository ) . METHOD_4 ( IDENT_4 , state ) ; com . googlecode . IDENT_8 . IDENT_9 . IDENT_10 . METHOD_5 ( METHOD_6 ( ) ) . METHOD_7 ( com . IDENT_0 . IDENT_1 . repository . IDENT_11 . class ) . METHOD_8 ( STRING_0 ) . METHOD_9 ( ) ; when ( transaction . update ( anyString ( ) , org . mockito . Matchers . METHOD_3 ( ) ) ) . thenReturn ( 0 ) ; com . googlecode . IDENT_8 . IDENT_9 . IDENT_10 . when ( repository ) . METHOD_4 ( IDENT_4 , state ) ; com . googlecode . IDENT_8 . IDENT_9 . IDENT_10 . METHOD_5 ( METHOD_6 ( ) ) . METHOD_7 ( com . IDENT_0 . IDENT_1 . repository . IDENT_11 . class ) . METHOD_8 ( STRING_1 ) . METHOD_9 ( ) ; } METHOD_4 ( com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 , com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_5 ) { validator . METHOD_2 ( IDENT_12 ) ; final java . lang . String IDENT_13 = STRING_2 + STRING_3 ; int IDENT_14 = METHOD_10 ( ) . update ( IDENT_13 , state . toString ( ) , IDENT_12 . METHOD_11 ( ) ) ; if ( IDENT_14 > 1 ) { throw new com . IDENT_0 . IDENT_1 . repository . METHOD_12 ( STRING_0 ) ; } if ( IDENT_14 < 1 ) { throw new com . IDENT_0 . IDENT_1 . repository . METHOD_12 ( STRING_1 ) ; } return IDENT_12 ; }
org . junit . Assert . assertThat ( result , org . hamcrest . core . Is . is ( IDENT_4 ) )