METHOD_0 ( ) { final org . IDENT_0 . event . IDENT_1 . IDENT_2 IDENT_3 = persistence . METHOD_1 ( org . IDENT_0 . event . IDENT_1 . persistence . IDENT_4 . IDENT_5 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( long ) { javax . persistence . IDENT_6 em = IDENT_7 . METHOD_3 ( ) ; try { org . IDENT_0 . event . IDENT_1 . persistence . IDENT_8 event = METHOD_4 ( IDENT_9 , em ) ; if ( event == null ) throw new org . IDENT_0 . util . METHOD_5 ( ( ( STRING_0 + IDENT_9 ) + STRING_1 ) ) ; return event . METHOD_6 ( IDENT_10 ) ; } catch ( org . IDENT_0 . util . METHOD_5 e ) { throw e ; } catch ( java . lang . Exception e ) { org . IDENT_0 . event . IDENT_1 . persistence . IDENT_11 . logger . error ( STRING_2 , IDENT_9 , e ) ; throw new org . IDENT_0 . event . IDENT_1 . persistence . METHOD_7 ( e ) ; } finally { if ( em != null ) em . close ( ) ; } }
org . junit . Assert . assertEquals ( org . IDENT_0 . event . IDENT_1 . persistence . IDENT_4 . IDENT_5 , persistence . METHOD_2 ( IDENT_3 . getId ( ) . get ( ) ) )