METHOD_0 ( ) { final com . IDENT_0 . IDENT_1 . entities . IDENT_2 entity = new com . IDENT_0 . IDENT_1 . entities . METHOD_1 ( ) ; entity . setName ( STRING_0 ) ; com . IDENT_0 . IDENT_1 . entities . METHOD_1 IDENT_3 = com . IDENT_0 . IDENT_1 . IDENT_4 . em . insert ( entity ) ; com . IDENT_0 . IDENT_1 . IDENT_5 < com . IDENT_0 . IDENT_1 . entities . METHOD_1 > task = ( transaction ) -> { return transaction . load ( . class , IDENT_3 . getId ( ) ) ; } ; com . IDENT_0 . IDENT_1 . entities . METHOD_1 IDENT_6 = com . IDENT_0 . IDENT_1 . IDENT_4 . em . METHOD_2 ( task , IDENT_7 . IDENT_8 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( com . IDENT_0 . IDENT_1 . IDENT_5 , com . IDENT_0 . IDENT_1 . IDENT_7 ) { if ( IDENT_9 == null ) { throw new java . lang . IllegalArgumentException ( STRING_1 ) ; } com . IDENT_0 . IDENT_1 . IDENT_10 transaction = null ; try { transaction = new com . IDENT_0 . IDENT_1 . impl . METHOD_3 ( this , IDENT_9 ) ; T IDENT_11 = task . execute ( transaction ) ; transaction . commit ( ) ; return IDENT_11 ; } catch ( java . lang . Exception exp ) { if ( transaction != null ) { transaction . METHOD_4 ( ) ; } throw new com . IDENT_0 . IDENT_1 . METHOD_5 ( exp ) ; } finally { if ( ( transaction != null ) && ( transaction . METHOD_6 ( ) ) ) { transaction . METHOD_4 ( ) ; } } }
org . junit . Assert . assertEquals ( IDENT_3 , IDENT_6 )