METHOD_0 ( ) { javax . jcr . Node collection = session . METHOD_1 ( ) . METHOD_2 ( STRING_0 ) ; collection . METHOD_2 ( STRING_1 ) ; session . save ( ) ; java . lang . String IDENT_0 = IDENT_1 . IDENT_2 . getString ( ) ; try { collection . METHOD_3 ( IDENT_0 ) ; org . junit . Assert . fail ( STRING_2 ) ; } catch ( javax . jcr . IDENT_3 . IDENT_4 e ) { } session . METHOD_4 ( STRING_3 ) . remove ( ) ; session . save ( ) ; collection . METHOD_3 ( IDENT_0 ) ; collection . METHOD_2 ( STRING_4 ) ; collection . METHOD_2 ( STRING_5 ) ; session . save ( ) ; javax . jcr . IDENT_5 IDENT_6 = collection . METHOD_5 ( ) ; "<AssertPlaceHolder>" ; try { collection . METHOD_6 ( IDENT_0 ) ; org . junit . Assert . fail ( STRING_6 ) ; } catch ( javax . jcr . IDENT_3 . IDENT_4 e ) { } try { collection . METHOD_3 ( STRING_7 ) ; org . junit . Assert . fail ( STRING_8 ) ; } catch ( javax . jcr . IDENT_3 . IDENT_4 e ) { } while ( IDENT_6 . hasNext ( ) ) { IDENT_6 . METHOD_7 ( ) . remove ( ) ; } session . save ( ) ; try { collection . METHOD_3 ( IDENT_1 . IDENT_7 . getString ( ) ) ; org . junit . Assert . fail ( STRING_9 ) ; } catch ( javax . jcr . IDENT_3 . IDENT_4 e ) { } session . save ( ) ; } METHOD_8 ( ) { return IDENT_8 . METHOD_9 ( ) ; }
org . junit . Assert . assertEquals ( 2 , IDENT_6 . METHOD_8 ( ) )