METHOD_0 ( ) { org . apache . hadoop . conf . Configuration conf = METHOD_1 ( ) ; com . IDENT_0 . hive . storage . jdbc . dao . IDENT_1 IDENT_2 = com . IDENT_0 . hive . storage . jdbc . dao . IDENT_3 . METHOD_2 ( conf ) ; int IDENT_4 = IDENT_2 . METHOD_3 ( conf ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( org . apache . hadoop . conf . Configuration ) { java . sql . IDENT_5 conn = null ; java . sql . IDENT_6 IDENT_7 = null ; java . sql . ResultSet rs = null ; try { METHOD_4 ( conf ) ; java . lang . String sql = com . IDENT_0 . hive . storage . jdbc . conf . IDENT_8 . METHOD_5 ( conf ) ; java . lang . String IDENT_9 = ( STRING_0 + sql ) + STRING_1 ; com . IDENT_0 . hive . storage . jdbc . dao . IDENT_10 . LOGGER . debug ( STRING_2 , IDENT_9 ) ; conn = IDENT_11 . METHOD_6 ( ) ; IDENT_7 = conn . METHOD_7 ( IDENT_9 ) ; rs = IDENT_7 . METHOD_8 ( ) ; if ( rs . next ( ) ) { return rs . METHOD_9 ( 1 ) ; } else { com . IDENT_0 . hive . storage . jdbc . dao . IDENT_10 . LOGGER . warn ( STRING_3 , IDENT_9 ) ; throw new com . IDENT_0 . hive . storage . jdbc . exception . METHOD_10 ( STRING_4 ) ; } } catch ( com . IDENT_0 . hive . storage . jdbc . exception . METHOD_10 IDENT_12 ) { throw IDENT_12 ; } catch ( java . lang . Exception e ) { com . IDENT_0 . hive . storage . jdbc . dao . IDENT_10 . LOGGER . error ( STRING_5 , e ) ; throw new com . IDENT_0 . hive . storage . jdbc . exception . METHOD_10 ( e ) ; } finally { METHOD_11 ( conn , IDENT_7 , rs ) ; } }
org . junit . Assert . assertThat ( IDENT_4 , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( 5 ) ) )