METHOD_0 ( ) { try ( org . IDENT_0 . core . persistence . jcr . IDENT_1 session = METHOD_1 ( ) ) { org . IDENT_0 . core . IDENT_2 . IDENT_3 . model . IDENT_4 IDENT_3 = METHOD_2 ( ) ; org . IDENT_0 . core . IDENT_2 . IDENT_3 . model . IDENT_5 IDENT_6 = new org . IDENT_0 . core . IDENT_2 . IDENT_3 . model . METHOD_3 ( STRING_0 , org . IDENT_0 . core . IDENT_2 . IDENT_3 . repository . IDENT_7 . IDENT_8 ) ; java . lang . String IDENT_9 = STRING_1 ; org . IDENT_0 . core . IDENT_2 . IDENT_3 . model . IDENT_10 document = new org . IDENT_0 . core . IDENT_2 . IDENT_3 . model . METHOD_4 ( IDENT_6 , IDENT_9 , 10 , IDENT_3 ) ; java . io . InputStream content = new java . io . ByteArrayInputStream ( STRING_2 . getBytes ( IDENT_11 . UTF_8 ) ) ; org . IDENT_0 . core . IDENT_2 . IDENT_3 . model . METHOD_3 result = METHOD_5 ( session , document , content ) ; org . IDENT_0 . core . IDENT_2 . IDENT_3 . model . METHOD_3 expResult = new org . IDENT_0 . core . IDENT_2 . IDENT_3 . model . METHOD_3 ( result . getId ( ) , org . IDENT_0 . core . IDENT_2 . IDENT_3 . repository . IDENT_7 . IDENT_8 ) ; "<AssertPlaceHolder>" ; content = new java . io . ByteArrayInputStream ( STRING_3 . getBytes ( IDENT_11 . UTF_8 ) ) ; IDENT_3 = METHOD_6 ( ) ; document . METHOD_7 ( result ) ; IDENT_12 . METHOD_8 ( session , document , document . METHOD_9 ( ) ) ; IDENT_12 . METHOD_10 ( session , result , IDENT_3 ) ; IDENT_12 . METHOD_11 ( document , content ) ; session . save ( ) ; IDENT_12 . METHOD_12 ( session , document , false ) ; org . IDENT_0 . core . IDENT_2 . IDENT_3 . model . IDENT_10 doc = IDENT_12 . METHOD_13 ( session , result , STRING_4 ) ; METHOD_14 ( doc ) ; doc = IDENT_12 . METHOD_13 ( session , result , STRING_5 ) ; METHOD_15 ( doc ) ; } } is ( T ) { return java . util . IDENT_13 . equals ( this . value , value ) ; }
org . junit . Assert . assertThat ( result , is ( expResult ) )