METHOD_0 ( ) { java . sql . IDENT_0 connection = org . easymock . EasyMock . METHOD_1 ( java . sql . IDENT_0 . class ) ; connection . METHOD_2 ( false ) ; org . easymock . EasyMock . METHOD_3 ( ) ; connection . close ( ) ; org . easymock . EasyMock . METHOD_3 ( ) ; javax . sql . IDENT_1 IDENT_2 = org . easymock . EasyMock . METHOD_1 ( javax . sql . IDENT_1 . class ) ; IDENT_2 . METHOD_4 ( ) ; org . easymock . EasyMock . METHOD_3 ( ) . andReturn ( connection ) ; org . easymock . EasyMock . replay ( connection , IDENT_2 ) ; com . vaadin . IDENT_3 . data . util . IDENT_4 . connection . IDENT_5 pool = new com . vaadin . IDENT_3 . data . util . IDENT_4 . connection . METHOD_5 ( IDENT_2 ) ; java . sql . IDENT_0 c = pool . METHOD_6 ( ) ; "<AssertPlaceHolder>" ; pool . METHOD_7 ( c ) ; org . easymock . EasyMock . verify ( connection , IDENT_2 ) ; } METHOD_6 ( ) { if ( ! ( IDENT_6 ) ) { METHOD_8 ( ) ; } if ( IDENT_7 . isEmpty ( ) ) { if ( ( IDENT_8 . size ( ) ) < ( IDENT_9 ) ) { IDENT_7 . add ( METHOD_9 ( ) ) ; } else { throw new java . sql . METHOD_10 ( STRING_0 ) ; } } java . sql . IDENT_0 c = IDENT_7 . iterator ( ) . next ( ) ; IDENT_7 . remove ( c ) ; IDENT_8 . add ( c ) ; return c ; }
org . junit . Assert . assertEquals ( connection , c )