METHOD_0 ( ) { boolean IDENT_0 = false ; final javax . persistence . IDENT_1 IDENT_2 = mock ( javax . persistence . IDENT_1 . class ) ; final org . nhindirect . config . store . IDENT_3 domain = mock ( org . nhindirect . config . store . IDENT_3 . class ) ; final org . nhindirect . config . store . dao . IDENT_4 IDENT_5 = mock ( org . nhindirect . config . store . dao . IDENT_4 . class ) ; when ( IDENT_5 . METHOD_1 ( new java . lang . Long ( INT_0 ) ) ) . thenReturn ( domain ) ; final javax . persistence . Query IDENT_6 = mock ( javax . persistence . Query . class ) ; METHOD_2 ( new java . lang . RuntimeException ( STRING_0 ) ) . when ( IDENT_6 ) . METHOD_3 ( ) ; when ( IDENT_2 . METHOD_4 ( STRING_1 ) ) . thenReturn ( IDENT_6 ) ; final org . nhindirect . config . store . dao . impl . IDENT_7 dao = new org . nhindirect . config . store . dao . impl . METHOD_5 ( ) ; dao . METHOD_6 ( IDENT_5 ) ; dao . METHOD_7 ( IDENT_2 ) ; final org . nhindirect . config . store . dao . impl . METHOD_5 IDENT_8 = METHOD_8 ( dao ) ; try { IDENT_8 . METHOD_9 ( INT_0 ) ; } catch ( org . nhindirect . config . store . IDENT_9 e ) { IDENT_0 = true ; } "<AssertPlaceHolder>" ; verify ( IDENT_5 , times ( 1 ) ) . METHOD_1 ( new java . lang . Long ( INT_0 ) ) ; verify ( IDENT_6 , times ( 1 ) ) . METHOD_3 ( ) ; }
org . junit . Assert . assertTrue ( IDENT_0 )