METHOD_0 ( ) { setName ( IDENT_0 , STRING_0 ) ; java . util . List < com . IDENT_1 . IDENT_2 . model . IDENT_3 > fields = new java . util . ArrayList < com . IDENT_1 . IDENT_2 . model . IDENT_3 > ( ) ; { com . IDENT_1 . IDENT_2 . model . IDENT_3 IDENT_4 = com . IDENT_1 . IDENT_2 . model . IDENT_5 . mock ( com . IDENT_1 . IDENT_2 . model . IDENT_3 . class ) ; when ( IDENT_4 . getName ( ) ) . thenReturn ( STRING_1 ) ; com . IDENT_1 . IDENT_2 . model . IDENT_6 IDENT_7 = METHOD_1 ( STRING_0 1 ) ; when ( IDENT_4 . getType ( ) ) . thenReturn ( IDENT_7 ) ; when ( IDENT_4 . METHOD_2 ( ) ) . thenReturn ( IDENT_0 ) ; fields . add ( IDENT_4 ) ; } { com . IDENT_1 . IDENT_2 . model . IDENT_3 IDENT_4 = com . IDENT_1 . IDENT_2 . model . IDENT_5 . mock ( com . IDENT_1 . IDENT_2 . model . IDENT_3 . class ) ; when ( IDENT_4 . getName ( ) ) . thenReturn ( STRING_2 ) ; com . IDENT_1 . IDENT_2 . model . IDENT_6 IDENT_8 = METHOD_1 ( STRING_3 ) ; when ( IDENT_4 . getType ( ) ) . thenReturn ( IDENT_8 ) ; when ( IDENT_4 . METHOD_3 ( ) ) . thenReturn ( java . util . Collections . singletonList ( STRING_4 ) ) ; when ( IDENT_4 . METHOD_2 ( ) ) . thenReturn ( IDENT_0 ) ; fields . add ( IDENT_4 ) ; } METHOD_4 ( IDENT_0 , fields ) ; java . lang . String expected = "" + ( ( ( ( ( ( STRING_5 + "\n" ) + STRING_0 0 ) + "\n" ) + STRING_6 ) + "\n" ) + STRING_7 ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( ) { return METHOD_6 ( ) . METHOD_7 ( this ) . toString ( ) ; }
org . junit . Assert . assertEquals ( expected , IDENT_0 . METHOD_5 ( ) )