METHOD_0 ( ) { com . github . IDENT_0 . IDENT_1 . io . IDENT_2 source = METHOD_1 ( com . github . IDENT_0 . IDENT_1 . io . IDENT_2 . class ) ; expect ( source . METHOD_2 ( ) ) . andReturn ( INT_0 ) . times ( 3 ) ; com . github . IDENT_0 . IDENT_1 . IDENT_3 template = METHOD_1 ( com . github . IDENT_0 . IDENT_1 . IDENT_3 . class ) ; java . util . concurrent . IDENT_4 < org . apache . commons . lang3 . tuple . IDENT_5 < com . github . IDENT_0 . IDENT_1 . io . IDENT_2 , com . github . IDENT_0 . IDENT_1 . IDENT_3 > > future = METHOD_1 ( java . util . concurrent . IDENT_4 . class ) ; expect ( future . get ( ) ) . METHOD_3 ( new java . util . concurrent . METHOD_4 ( new java . lang . IllegalArgumentException ( ) ) ) ; org . easymock . IDENT_6 < com . github . IDENT_0 . IDENT_1 . io . IDENT_2 > IDENT_7 = new org . easymock . METHOD_5 ( ) ; org . easymock . METHOD_5 < com . github . IDENT_0 . IDENT_1 . io . IDENT_2 > IDENT_8 = new org . easymock . METHOD_5 ( ) ; java . util . concurrent . IDENT_9 < com . github . IDENT_0 . IDENT_1 . io . IDENT_2 , java . util . concurrent . IDENT_4 < org . apache . commons . lang3 . tuple . IDENT_5 < com . github . IDENT_0 . IDENT_1 . io . IDENT_2 , com . github . IDENT_0 . IDENT_1 . IDENT_3 > > > cache = METHOD_1 ( java . util . concurrent . IDENT_9 . class ) ; expect ( cache . get ( METHOD_6 ( IDENT_7 ) ) ) . andReturn ( future ) ; expect ( cache . remove ( METHOD_6 ( IDENT_8 ) , eq ( future ) ) ) . andReturn ( true ) ; com . github . IDENT_0 . IDENT_1 . IDENT_10 parser = METHOD_1 ( com . github . IDENT_0 . IDENT_1 . IDENT_10 . class ) ; java . lang . Object [ ] IDENT_11 = new java . lang . Object [ ] { cache , source , future , template } ; replay ( IDENT_11 ) ; com . github . IDENT_0 . IDENT_1 . IDENT_3 result = new com . github . IDENT_0 . IDENT_1 . cache . METHOD_7 ( cache ) . get ( source , parser ) ; "<AssertPlaceHolder>" ; verify ( IDENT_11 ) ; } get ( ) { com . google . common . cache . IDENT_12 < com . github . IDENT_0 . IDENT_1 . io . IDENT_2 , com . github . IDENT_0 . IDENT_1 . IDENT_3 > cache = com . google . common . cache . IDENT_13 . METHOD_8 ( ) . build ( ) ; com . github . IDENT_0 . IDENT_1 . io . IDENT_2 source = new com . github . IDENT_0 . IDENT_1 . io . METHOD_9 ( STRING_0 , getClass ( ) . getResource ( STRING_0 ) ) ; com . github . IDENT_0 . IDENT_1 . IDENT_3 template = METHOD_1 ( com . github . IDENT_0 . IDENT_1 . IDENT_3 . class ) ; com . github . IDENT_0 . IDENT_1 . IDENT_10 parser = METHOD_1 ( com . github . IDENT_0 . IDENT_1 . IDENT_10 . class ) ; expect ( parser . parse ( source ) ) . andReturn ( template ) ; replay ( parser , template ) ; org . junit . Assert . assertEquals ( template , new com . github . IDENT_0 . IDENT_1 . cache . METHOD_10 ( cache ) . get ( source , parser ) ) ; org . junit . Assert . assertEquals ( template , new com . github . IDENT_0 . IDENT_1 . cache . METHOD_10 ( cache ) . get ( source , parser ) ) ; verify ( parser , template ) ; }
org . junit . Assert . assertEquals ( template , result )