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