METHOD_0 ( ) { java . sql . IDENT_0 stmt = org . mockito . Mockito . mock ( java . sql . IDENT_0 . class ) ; java . sql . ResultSet results = org . mockito . Mockito . mock ( java . sql . ResultSet . class ) ; final long offset = INT_0 ; org . apache . calcite . IDENT_1 . jdbc . IDENT_2 info = new org . apache . calcite . IDENT_1 . jdbc . METHOD_1 ( stmt ) ; info . METHOD_2 ( results ) ; org . mockito . Mockito . when ( results . METHOD_3 ( ( ( int ) ( offset ) ) ) ) . METHOD_4 ( new java . sql . METHOD_5 ( ) ) ; org . mockito . Mockito . when ( results . next ( ) ) . METHOD_6 ( new org . mockito . IDENT_3 . IDENT_4 < java . lang . Boolean > ( ) { MOD_0 long IDENT_5 = 0 ; @ org . apache . calcite . IDENT_1 . jdbc . Override public org . apache . calcite . IDENT_1 . jdbc . Boolean METHOD_7 ( org . mockito . IDENT_6 . IDENT_7 IDENT_6 ) throws java . lang . Throwable { ( IDENT_5 ) ++ ; if ( ( IDENT_5 ) >= offset ) { return false ; } return true ; } } ) ; info . METHOD_8 ( results , offset ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( results , org . mockito . Mockito . times ( INT_0 ) ) . next ( ) ; } METHOD_9 ( ) { return this . position ; }
org . junit . Assert . assertEquals ( offset , info . METHOD_9 ( ) )