METHOD_0 ( ) { java . lang . String resource = METHOD_1 ( ) ; if ( ! ( resource . startsWith ( "/" ) ) ) { resource = "/" . METHOD_2 ( resource ) ; } java . net . URL url = IDENT_0 . IDENT_1 . template . IDENT_2 . class . getResource ( resource ) ; javax . servlet . IDENT_3 context = mock ( javax . servlet . IDENT_3 . class ) ; java . io . InputStream input = null ; try { input = url . METHOD_3 ( ) ; when ( context . getResourceAsStream ( STRING_0 ) ) . thenReturn ( input ) ; when ( context . getResource ( STRING_0 ) ) . thenReturn ( url ) ; when ( context . getResourceAsStream ( STRING_1 ) ) . thenReturn ( input ) ; when ( context . getResource ( STRING_1 ) ) . thenReturn ( url ) ; IDENT_0 . IDENT_1 . template . IDENT_4 engine = METHOD_4 ( context ) ; "<AssertPlaceHolder>" ; } finally { com . google . common . io . IDENT_5 . METHOD_5 ( input ) ; } } METHOD_6 ( java . lang . String ) { if ( IDENT_0 . IDENT_1 . template . IDENT_6 . logger . METHOD_7 ( ) ) { IDENT_0 . IDENT_1 . template . IDENT_6 . logger . trace ( STRING_2 , IDENT_7 ) ; } IDENT_0 . IDENT_1 . template . IDENT_8 template = null ; IDENT_9 . template . IDENT_10 t = null ; try { t = configuration . METHOD_6 ( IDENT_7 , IDENT_0 . IDENT_1 . template . IDENT_6 . IDENT_11 ) ; } catch ( java . io . IDENT_12 ex ) { if ( IDENT_0 . IDENT_1 . template . IDENT_6 . logger . METHOD_7 ( ) ) { IDENT_0 . IDENT_1 . template . IDENT_6 . logger . trace ( STRING_3 . METHOD_2 ( IDENT_7 ) , ex ) ; } } if ( t != null ) { template = new IDENT_0 . IDENT_1 . template . METHOD_8 ( t ) ; } else if ( IDENT_0 . IDENT_1 . template . IDENT_6 . logger . METHOD_9 ( ) ) { IDENT_0 . IDENT_1 . template . IDENT_6 . logger . warn ( STRING_4 , IDENT_7 ) ; } return template ; }
org . junit . Assert . assertNotNull ( engine . METHOD_6 ( STRING_0 ) )