METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; java . lang . String IDENT_1 = STRING_1 ; java . util . List < com . IDENT_2 . data . person . Person > IDENT_3 = new java . util . ArrayList < com . IDENT_2 . data . person . Person > ( ) ; IDENT_3 . add ( new com . IDENT_2 . data . person . Person ( STRING_2 , IDENT_1 ) ) ; IDENT_3 . add ( new com . IDENT_2 . data . person . Person ( STRING_3 , IDENT_1 ) ) ; IDENT_3 . add ( new com . IDENT_2 . data . person . Person ( STRING_4 , IDENT_1 ) ) ; expect ( factory . METHOD_1 ( ) ) . andReturn ( session ) ; expect ( session . METHOD_2 ( IDENT_0 ) ) . andReturn ( query ) ; expect ( query . METHOD_3 ( STRING_5 , IDENT_1 ) ) . andReturn ( query ) ; expect ( query . list ( ) ) . andReturn ( IDENT_3 ) ; replay ( factory , session , query ) ; com . IDENT_2 . data . hibernate . IDENT_4 dao = new com . IDENT_2 . data . hibernate . METHOD_4 ( ) ; dao . METHOD_5 ( factory ) ; "<AssertPlaceHolder>" ; verify ( factory , session , query ) ; } METHOD_6 ( java . lang . String ) { java . lang . String sql = STRING_6 ; java . lang . String [ ] args = new java . lang . String [ ] { IDENT_1 } ; org . springframework . jdbc . core . IDENT_5 mapper = new com . IDENT_2 . data . IDENT_6 . jdbc . METHOD_7 ( ) ; return METHOD_8 ( ) . query ( sql , args , mapper ) ; }
org . junit . Assert . assertEquals ( IDENT_3 , dao . METHOD_6 ( IDENT_1 ) )