METHOD_0 ( ) { final IDENT_0 . IDENT_1 . IDENT_2 IDENT_3 = mock ( IDENT_0 . IDENT_1 . IDENT_2 . class ) ; final IDENT_0 . Context context = mock ( IDENT_0 . Context . class ) ; final IDENT_0 . Result result = mock ( IDENT_0 . Result . class ) ; when ( context . METHOD_1 ( ) ) . thenReturn ( STRING_0 ) ; when ( IDENT_3 . METHOD_2 ( context , java . util . Optional . of ( result ) ) ) . thenReturn ( java . util . Optional . of ( STRING_1 ) ) ; final com . IDENT_4 . IDENT_0 . IDENT_5 . IDENT_6 IDENT_7 = new com . IDENT_4 . IDENT_0 . IDENT_5 . METHOD_3 ( ) ; com . IDENT_4 . IDENT_5 . runtime . IDENT_8 model = new com . IDENT_4 . IDENT_5 . runtime . METHOD_4 ( ) { @ com . IDENT_4 . IDENT_0 . IDENT_5 . Override MOD_0 com . IDENT_4 . IDENT_5 . runtime . IDENT_9 METHOD_5 ( ) throws com . IDENT_4 . IDENT_5 . IDENT_10 { return new com . IDENT_4 . IDENT_0 . IDENT_5 . METHOD_6 ( this ) { { this . IDENT_11 . METHOD_7 ( STRING_2 ) ; this . IDENT_11 . METHOD_8 ( IDENT_12 . IDENT_13 ) ; this . IDENT_11 . METHOD_9 ( "test" ) ; this . IDENT_11 . METHOD_10 ( "test" ) ; this . IDENT_14 = IDENT_7 . create ( null , null , null , null , IDENT_3 , context , result ) ; } @ com . IDENT_4 . IDENT_0 . IDENT_5 . Override MOD_0 void METHOD_11 ( ) throws com . IDENT_4 . IDENT_5 . IDENT_10 , java . io . IOException { this . IDENT_11 . METHOD_12 ( IDENT_14 . METHOD_0 ) ; } } ; } } ; com . IDENT_4 . IDENT_5 . IDENT_15 out = model . render ( ) ; "<AssertPlaceHolder>" ; } METHOD_11 ( ) { this . IDENT_11 . METHOD_12 ( IDENT_16 . IDENT_17 . METHOD_13 ( ) . getName ( ) ) ; }
org . junit . Assert . assertThat ( out . toString ( ) , org . hamcrest . CoreMatchers . is ( STRING_0 ) )