METHOD_0 ( ) { org . IDENT_0 . metadata . IDENT_1 . persistence . IDENT_2 . LOG . info ( STRING_0 ) ; METHOD_1 ( IDENT_3 . IDENT_4 ) ; org . junit . IDENT_5 . METHOD_2 ( store ) ; java . util . List < java . lang . String > IDENT_6 = org . IDENT_0 . metadata . IDENT_1 . persistence . IDENT_7 . METHOD_3 ( store , IDENT_3 . IDENT_8 , IDENT_3 . IDENT_9 , IDENT_3 . IDENT_10 ) ; org . IDENT_0 . metadata . IDENT_1 . persistence . IDENT_2 . LOG . info ( ( ( STRING_1 + IDENT_6 ) + STRING_2 ) ) ; java . lang . String IDENT_11 = IDENT_3 . IDENT_12 . METHOD_4 ( ) ; if ( IDENT_11 == null ) { org . IDENT_0 . metadata . IDENT_1 . persistence . IDENT_2 . LOG . warn ( STRING_3 ) ; return ; } javax . xml . stream . IDENT_13 IDENT_14 = org . IDENT_0 . metadata . IDENT_1 . persistence . IDENT_2 . METHOD_5 ( IDENT_11 ) ; org . IDENT_0 . filter . IDENT_15 IDENT_16 = org . IDENT_0 . filter . xml . IDENT_17 . parse ( IDENT_14 ) ; IDENT_14 . close ( ) ; org . IDENT_0 . metadata . persistence . IDENT_18 IDENT_19 = store . METHOD_6 ( ) ; org . IDENT_0 . metadata . persistence . transaction . IDENT_20 delete = new org . IDENT_0 . metadata . persistence . transaction . METHOD_7 ( STRING_4 , null , IDENT_16 ) ; IDENT_19 . METHOD_8 ( delete ) ; IDENT_19 . commit ( ) ; org . IDENT_0 . metadata . persistence . IDENT_21 query = new org . IDENT_0 . metadata . persistence . METHOD_9 ( null , null , null , null , 1 , 10 ) ; IDENT_22 = store . METHOD_10 ( query ) ; int size = 0 ; while ( IDENT_22 . next ( ) ) { size ++ ; } "<AssertPlaceHolder>" ; } next ( ) { if ( ! ( hasNext ( ) ) ) { throw new java . util . METHOD_11 ( ) ; } try { org . IDENT_0 . metadata . IDENT_23 record = org . IDENT_0 . metadata . IDENT_24 . create ( IDENT_25 ) ; return record ; } finally { try { METHOD_12 ( IDENT_25 ) ; } catch ( javax . xml . stream . IDENT_26 e ) { throw new org . IDENT_0 . commons . xml . METHOD_13 ( IDENT_25 , e . getMessage ( ) ) ; } } }
org . junit . Assert . assertEquals ( 1 , size )