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