METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 id = IDENT_3 . IDENT_4 . newInstance ( ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_5 IDENT_6 = com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_5 . METHOD_1 ( id ) . METHOD_2 ( 1.0 ) . METHOD_3 ( IDENT_3 . IDENT_7 . valueOf ( STRING_0 ) ) . METHOD_4 ( new java . util . Date ( ) ) . METHOD_5 ( STRING_1 ) . METHOD_6 ( new java . util . Date ( ) ) . METHOD_7 ( IDENT_8 . IDENT_9 . valueOf ( STRING_2 ) ) . build ( ) ; METHOD_8 ( ) . when ( transaction ) . insert ( anyString ( ) , org . mockito . Matchers . METHOD_9 ( ) ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 result = repository . METHOD_10 ( IDENT_6 ) ; "<AssertPlaceHolder>" ; METHOD_11 ( new com . IDENT_0 . IDENT_1 . exceptions . METHOD_12 ( STRING_3 ) ) . when ( transaction ) . insert ( anyString ( ) , org . mockito . Matchers . METHOD_9 ( ) ) ; com . googlecode . IDENT_10 . IDENT_11 . IDENT_12 . when ( repository ) . METHOD_10 ( IDENT_6 ) ; com . googlecode . IDENT_10 . IDENT_11 . IDENT_12 . METHOD_13 ( METHOD_14 ( ) ) . METHOD_15 ( com . IDENT_0 . IDENT_1 . IDENT_2 . exceptions . IDENT_13 . class ) . METHOD_16 ( STRING_3 ) . METHOD_17 ( ) ; METHOD_11 ( new java . lang . RuntimeException ( STRING_4 ) ) . when ( transaction ) . insert ( anyString ( ) , org . mockito . Matchers . METHOD_9 ( ) ) ; com . googlecode . IDENT_10 . IDENT_11 . IDENT_12 . when ( repository ) . METHOD_10 ( IDENT_6 ) ; com . googlecode . IDENT_10 . IDENT_11 . IDENT_12 . METHOD_13 ( METHOD_14 ( ) ) . METHOD_15 ( com . IDENT_0 . IDENT_1 . repository . database . Exception . class ) . METHOD_18 ( STRING_5 ) . METHOD_19 ( com . IDENT_0 . IDENT_1 . repository . database . RuntimeException . class ) ; } METHOD_10 ( com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_5 ) { final java . lang . String IDENT_14 = STRING_6 + ( ( STRING_7 + STRING_8 ) + STRING_9 ) ; try { METHOD_20 ( ) . insert ( IDENT_14 , IDENT_15 . METHOD_21 ( ) , ( ( IDENT_15 . METHOD_22 ( ) ) != null ? IDENT_15 . METHOD_22 ( ) : "" ) , IDENT_15 . METHOD_23 ( ) , IDENT_15 . METHOD_24 ( ) . toString ( ) , IDENT_15 . METHOD_25 ( ) , IDENT_15 . METHOD_26 ( ) , IDENT_15 . METHOD_27 ( ) . toString ( ) , IDENT_16 . IDENT_17 . toString ( ) ) ; return IDENT_15 . METHOD_21 ( ) ; } catch ( com . IDENT_0 . IDENT_1 . IDENT_2 . exceptions . IDENT_13 e ) { throw e ; } catch ( java . lang . Exception e ) { throw new com . IDENT_0 . IDENT_1 . repository . METHOD_28 ( ( ( STRING_10 + ( IDENT_15 . toString ( ) ) ) + STRING_11 ) , e ) ; } }
org . junit . Assert . assertThat ( result , org . hamcrest . core . Is . is ( id ) )