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 ) { METHOD_2 ( ) ; try { org . pentaho . database . model . IDENT_8 connection = IDENT_6 . METHOD_3 ( id ) ; if ( connection == null ) { throw new org . pentaho . platform . IDENT_0 . IDENT_1 . IDENT_2 . service . METHOD_5 ( com . google . IDENT_9 . http . client . Response . IDENT_10 , org . pentaho . platform . IDENT_0 . IDENT_1 . IDENT_2 . service . messages . IDENT_11 . METHOD_6 ( STRING_0 , id ) ) ; } else { return connection ; } } catch ( org . pentaho . platform . api . repository . IDENT_1 . IDENT_12 IDENT_13 ) { java . lang . String message = org . pentaho . platform . IDENT_0 . IDENT_1 . IDENT_2 . service . messages . IDENT_11 . METHOD_6 ( STRING_0 , IDENT_13 . METHOD_7 ( ) ) ; org . pentaho . platform . IDENT_0 . IDENT_1 . IDENT_2 . service . impl . IDENT_14 . logger . error ( message ) ; throw new org . pentaho . platform . IDENT_0 . IDENT_1 . IDENT_2 . service . METHOD_5 ( message , IDENT_13 ) ; } }
org . junit . Assert . assertEquals ( IDENT_5 , connection )