METHOD_0 ( ) { org . apache . IDENT_0 . render . IDENT_1 . IDENT_2 mock = mock ( org . apache . IDENT_0 . render . IDENT_1 . IDENT_2 . class ) ; when ( mock . METHOD_1 ( ) ) . thenReturn ( IDENT_3 . IDENT_4 ) ; try { METHOD_2 ( ) ; org . apache . IDENT_0 . render . pdf . IDENT_5 config = ( ( org . apache . IDENT_0 . render . pdf . IDENT_5 ) ( IDENT_6 . METHOD_3 ( null , null , mock ) ) ) ; METHOD_2 ( ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; org . junit . Assert . fail ( e . getMessage ( ) ) ; } } METHOD_3 ( org . apache . IDENT_0 . IDENT_7 . IDENT_8 , org . apache . IDENT_0 . configuration . Configuration , org . apache . IDENT_0 . render . IDENT_1 . IDENT_2 ) { org . apache . IDENT_0 . render . IDENT_1 config = IDENT_9 . get ( IDENT_10 . METHOD_1 ( ) ) ; if ( config == null ) { try { config = IDENT_10 . build ( IDENT_11 , IDENT_12 ) ; IDENT_9 . put ( IDENT_10 . METHOD_1 ( ) , config ) ; } catch ( java . lang . Exception e ) { throw new org . apache . IDENT_0 . IDENT_7 . METHOD_4 ( e ) ; } } return config ; }
org . junit . Assert . assertEquals ( config , IDENT_6 . METHOD_3 ( null , null , mock ) )