METHOD_0 ( ) { org . IDENT_0 . properties . IDENT_1 IDENT_2 = mock ( org . IDENT_0 . properties . IDENT_1 . class ) ; when ( IDENT_2 . METHOD_1 ( IDENT_3 . IDENT_4 . IDENT_5 ) ) . thenReturn ( org . eclipse . IDENT_6 . common . util . URI . METHOD_2 ( STRING_0 ) ) ; when ( IDENT_2 . METHOD_3 ( IDENT_3 . IDENT_4 . IDENT_5 ) ) . thenReturn ( true ) ; when ( IDENT_2 . METHOD_4 ( ) ) . thenReturn ( IDENT_3 . IDENT_4 . IDENT_7 ) ; org . IDENT_0 . properties . IDENT_8 file = IDENT_9 . IDENT_10 . METHOD_5 ( ) ; when ( IDENT_2 . METHOD_6 ( ) ) . thenReturn ( file ) ; org . IDENT_0 . properties . IDENT_11 property = IDENT_9 . IDENT_10 . METHOD_7 ( ) ; property . METHOD_8 ( STRING_1 ) ; property . METHOD_9 ( STRING_2 ) ; property . setValue ( STRING_3 ) ; file . METHOD_10 ( ) . add ( property ) ; org . IDENT_0 . properties . IDENT_11 IDENT_12 = IDENT_9 . IDENT_10 . METHOD_7 ( ) ; IDENT_12 . METHOD_8 ( STRING_4 ) ; IDENT_12 . METHOD_9 ( STRING_5 ) ; IDENT_12 . setValue ( STRING_6 ) ; file . METHOD_10 ( ) . add ( IDENT_12 ) ; java . lang . StringBuilder result = new java . lang . StringBuilder ( ) ; METHOD_11 ( ) . serialize ( IDENT_2 , result , 1 ) ; java . lang . String expected = STRING_7 ; "<AssertPlaceHolder>" ; } toString ( ) { return METHOD_12 ( ) ; }
org . junit . Assert . assertEquals ( expected , result . toString ( ) )