METHOD_0 ( ) { org . pentaho . database . service . IDENT_0 IDENT_1 = new org . pentaho . database . service . METHOD_1 ( false ) ; final org . pentaho . database . model . IDENT_2 IDENT_3 = new org . pentaho . database . model . METHOD_2 ( ) ; IDENT_3 . setId ( STRING_0 ) ; IDENT_3 . setName ( STRING_0 ) ; IDENT_3 . METHOD_3 ( IDENT_4 . IDENT_5 ) ; IDENT_3 . METHOD_4 ( STRING_1 ) ; IDENT_3 . METHOD_5 ( STRING_2 ) ; final java . util . HashMap < java . lang . String , java . lang . String > IDENT_6 = new java . util . HashMap ( ) ; IDENT_6 . put ( METHOD_2 . IDENT_7 , STRING_3 ) ; IDENT_6 . put ( METHOD_2 . IDENT_8 , STRING_4 ) ; IDENT_3 . METHOD_6 ( IDENT_6 ) ; try { org . pentaho . platform . engine . services . connection . IDENT_9 . IDENT_10 . IDENT_11 . convert ( IDENT_3 , ( ) -> IDENT_1 ) ; org . junit . Assert . fail ( STRING_5 ) ; } catch ( org . pentaho . platform . api . data . IDENT_12 ex ) { "<AssertPlaceHolder>" ; } } convert ( org . pentaho . database . model . IDENT_13 , java . util . function . IDENT_14 ) { org . springframework . jdbc . IDENT_9 . IDENT_15 IDENT_16 = new org . springframework . jdbc . IDENT_9 . METHOD_7 ( ) ; org . pentaho . database . IDENT_17 IDENT_18 = java . util . Optional . METHOD_8 ( IDENT_19 . get ( ) ) . METHOD_9 ( ( ) -> new org . pentaho . platform . api . data . METHOD_10 ( org . pentaho . platform . engine . services . messages . IDENT_20 . getInstance ( ) . METHOD_11 ( STRING_6 ) ) ) . METHOD_12 ( IDENT_21 ) ; if ( ( ( IDENT_21 . METHOD_13 ( ) ) == null ) && ( IDENT_18 == null ) ) { throw new org . pentaho . platform . api . data . METHOD_10 ( org . pentaho . platform . engine . services . messages . IDENT_20 . getInstance ( ) . METHOD_11 ( STRING_7 , IDENT_21 . getName ( ) ) ) ; } if ( IDENT_21 . METHOD_13 ( ) . METHOD_14 ( ) . equals ( STRING_8 ) ) { java . lang . String IDENT_22 = IDENT_21 . METHOD_15 ( ) . get ( IDENT_23 . IDENT_7 ) ; if ( ! ( org . apache . commons . lang . StringUtils . isEmpty ( IDENT_22 ) ) ) { org . pentaho . platform . engine . services . connection . IDENT_9 . IDENT_10 . IDENT_11 . METHOD_16 ( IDENT_16 , IDENT_18 , IDENT_22 , IDENT_21 . getName ( ) ) ; } else { throw new org . pentaho . platform . api . data . METHOD_10 ( org . pentaho . platform . engine . services . messages . IDENT_20 . getInstance ( ) . METHOD_11 ( STRING_9 , IDENT_21 . getName ( ) ) ) ; } } else { if ( ! ( org . apache . commons . lang . StringUtils . isEmpty ( IDENT_18 . METHOD_17 ( ) ) ) ) { org . pentaho . platform . engine . services . connection . IDENT_9 . IDENT_10 . IDENT_11 . METHOD_16 ( IDENT_16 , IDENT_18 , IDENT_18 . METHOD_17 ( ) , IDENT_21 . getName ( ) ) ; } else { throw new org . pentaho . platform . api . data . METHOD_10 ( org . pentaho . platform . engine . services . messages . IDENT_20 . getInstance ( ) . METHOD_11 ( STRING_10 , IDENT_21 . getName ( ) ) ) ; } } try { IDENT_16 . METHOD_18 ( IDENT_18 . METHOD_19 ( IDENT_21 ) ) ; } catch ( org . pentaho . database . IDENT_24 e ) { IDENT_16 . METHOD_18 ( null ) ; } IDENT_16 . METHOD_4 ( IDENT_21 . METHOD_20 ( ) ) ; IDENT_16 . METHOD_5 ( IDENT_21 . METHOD_21 ( ) ) ; return IDENT_16 ; }
org . junit . Assert . assertNotNull ( ex )