METHOD_0 ( ) { METHOD_1 ( ) . when ( org . pentaho . platform . IDENT_0 . IDENT_1 . IDENT_2 . service . impl . IDENT_3 . IDENT_4 ) . METHOD_2 ( ) ; doReturn ( IDENT_5 ) . when ( org . pentaho . platform . IDENT_0 . IDENT_1 . IDENT_2 . service . impl . IDENT_3 . IDENT_4 . IDENT_6 ) . METHOD_3 ( org . pentaho . platform . IDENT_0 . IDENT_1 . IDENT_2 . service . impl . IDENT_3 . IDENT_7 ) ; org . pentaho . database . model . IDENT_8 connection = org . pentaho . platform . IDENT_0 . IDENT_1 . IDENT_2 . service . impl . IDENT_3 . IDENT_4 . METHOD_4 ( org . pentaho . platform . IDENT_0 . IDENT_1 . IDENT_2 . service . impl . IDENT_3 . IDENT_7 ) ; verify ( org . pentaho . platform . IDENT_0 . IDENT_1 . IDENT_2 . service . impl . IDENT_3 . IDENT_4 ) . METHOD_4 ( org . pentaho . platform . IDENT_0 . IDENT_1 . IDENT_2 . service . impl . IDENT_3 . IDENT_7 ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( java . lang . String ) { com . sun . jersey . api . client . config . IDENT_9 IDENT_10 = new com . sun . jersey . api . client . config . METHOD_5 ( ) ; com . sun . jersey . api . client . IDENT_11 client = com . sun . jersey . api . client . IDENT_11 . create ( IDENT_10 ) ; org . pentaho . database . model . IDENT_8 connection = null ; com . sun . jersey . api . client . IDENT_12 resource = client . resource ( org . pentaho . platform . IDENT_0 . IDENT_1 . IDENT_13 . IDENT_14 ) ; try { connection = resource . type ( IDENT_15 . IDENT_16 ) . type ( IDENT_15 . IDENT_17 ) . entity ( IDENT_18 ) . get ( org . pentaho . database . model . IDENT_19 . class ) ; } catch ( java . lang . Exception ex ) { ex . printStackTrace ( ) ; } return connection ; }
org . junit . Assert . assertEquals ( IDENT_5 , connection )