METHOD_0 ( ) { org . easymock . IDENT_0 IDENT_1 = com . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . EasyMock . METHOD_1 ( ) ; final int IDENT_6 = INT_0 ; final int IDENT_7 = INT_1 ; final java . time . IDENT_8 IDENT_9 = java . time . IDENT_8 . METHOD_2 ( 1L ) ; final com . IDENT_2 . IDENT_3 . IDENT_10 . IDENT_11 IDENT_12 = IDENT_1 . METHOD_3 ( com . IDENT_2 . IDENT_3 . IDENT_10 . IDENT_11 . class ) ; expect ( IDENT_12 . METHOD_4 ( IDENT_6 , IDENT_7 , IDENT_9 ) ) . METHOD_5 ( new com . IDENT_2 . IDENT_3 . IDENT_10 . METHOD_6 ( ) { @ com . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . Override public com . IDENT_2 . IDENT_3 . IDENT_10 . IDENT_13 METHOD_4 ( int IDENT_6 , int IDENT_7 , java . time . IDENT_8 IDENT_9 ) throws com . IDENT_2 . IDENT_3 . IDENT_10 . IDENT_14 { try { java . lang . Thread . sleep ( INT_2 ) ; } catch ( java . lang . IDENT_15 e ) { org . junit . Assert . fail ( ) ; } throw new com . IDENT_2 . IDENT_3 . IDENT_10 . METHOD_7 ( STRING_0 ) ; } @ com . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . Override public java . util . List < com . IDENT_2 . IDENT_3 . IDENT_10 . IDENT_16 . IDENT_17 > METHOD_8 ( ) throws com . IDENT_2 . IDENT_3 . IDENT_10 . IDENT_14 { throw new java . lang . IllegalArgumentException ( ) ; } @ com . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . Override public void METHOD_9 ( com . IDENT_2 . IDENT_3 . IDENT_4 . database . IDENT_18 . IDENT_19 IDENT_20 ) { throw new java . lang . IllegalArgumentException ( ) ; } @ com . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . Override public void close ( ) throws com . IDENT_2 . IDENT_3 . IDENT_10 . IDENT_14 { throw new java . lang . IllegalArgumentException ( ) ; } @ com . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . Override public java . lang . String METHOD_10 ( ) { throw new java . lang . IllegalArgumentException ( ) ; } @ com . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . Override public boolean METHOD_11 ( ) { return true ; } } ) ; expect ( IDENT_12 . METHOD_4 ( IDENT_6 , IDENT_7 , IDENT_9 ) ) . andReturn ( new com . IDENT_2 . IDENT_3 . IDENT_10 . METHOD_12 ( ) { @ com . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . Override public long METHOD_13 ( ) { return 2 ; } @ com . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . Override public long getId ( long index ) { return 200 ; } } ) ; expect ( IDENT_12 . METHOD_11 ( ) ) . METHOD_14 ( true ) ; IDENT_1 . replay ( ) ; com . IDENT_2 . IDENT_3 . IDENT_4 . database . IDENT_18 . IDENT_21 pool = new com . IDENT_2 . IDENT_3 . IDENT_4 . database . IDENT_18 . METHOD_15 ( IDENT_12 , IDENT_6 , IDENT_7 , Integer . MAX_VALUE , IDENT_9 , FLOAT_0 ) ; try { pool . METHOD_16 ( ) ; org . junit . Assert . fail ( ) ; } catch ( com . IDENT_2 . IDENT_3 . core . IDENT_22 e ) { } long METHOD_16 = pool . METHOD_16 ( ) ; "<AssertPlaceHolder>" ; IDENT_1 . verify ( ) ; } METHOD_16 ( ) { assert ( IDENT_23 ) <= ( IDENT_24 . METHOD_13 ( ) ) ; if ( ( IDENT_23 ) == ( IDENT_24 . METHOD_13 ( ) ) ) { try { METHOD_17 ( ) ; } catch ( java . lang . IDENT_15 e ) { throw new com . IDENT_2 . IDENT_3 . core . METHOD_18 ( STRING_1 , e ) ; } } if ( ( IDENT_23 ) == ( IDENT_25 ) ) { METHOD_19 ( ) ; } long IDENT_26 = IDENT_24 . getId ( IDENT_23 ) ; ( IDENT_23 ) ++ ; if ( IDENT_26 >= ( IDENT_27 ) ) throw new com . IDENT_2 . IDENT_3 . IDENT_4 . database . IDENT_18 . METHOD_20 ( ( STRING_2 + ( IDENT_27 ) ) ) ; com . IDENT_2 . IDENT_3 . IDENT_4 . database . IDENT_18 . METHOD_15 . log . trace ( STRING_3 , IDENT_6 , IDENT_7 , IDENT_26 ) ; return IDENT_26 ; }
org . junit . Assert . assertEquals ( 200 , METHOD_16 )