METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; java . lang . String IDENT_1 = STRING_1 ; java . lang . String IDENT_2 = STRING_2 ; java . lang . String IDENT_3 = STRING_3 ; org . oscarehr . common . model . IDENT_4 IDENT_5 = new org . oscarehr . common . model . METHOD_1 ( ) ; org . oscarehr . common . dao . utils . IDENT_6 . METHOD_2 ( IDENT_5 ) ; IDENT_5 . setName ( IDENT_0 ) ; IDENT_5 . METHOD_3 ( IDENT_2 ) ; dao . METHOD_4 ( IDENT_5 ) ; org . oscarehr . common . model . METHOD_1 IDENT_7 = new org . oscarehr . common . model . METHOD_1 ( ) ; org . oscarehr . common . dao . utils . IDENT_6 . METHOD_2 ( IDENT_7 ) ; IDENT_7 . METHOD_3 ( IDENT_1 ) ; IDENT_7 . METHOD_3 ( IDENT_3 ) ; dao . METHOD_4 ( IDENT_7 ) ; org . oscarehr . common . model . METHOD_1 IDENT_8 = IDENT_5 ; org . oscarehr . common . model . METHOD_1 result = dao . METHOD_5 ( IDENT_2 , IDENT_0 ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( java . lang . String , java . lang . String ) { javax . persistence . Query query = IDENT_9 . METHOD_6 ( STRING_4 ) ; query . METHOD_7 ( 1 , IDENT_10 ) ; query . METHOD_7 ( 2 , name ) ; @ org . oscarehr . common . dao . METHOD_8 ( STRING_5 ) java . util . List < org . oscarehr . common . model . METHOD_1 > list = query . METHOD_9 ( ) ; if ( ( list != null ) && ( ( list . size ( ) ) > 0 ) ) { org . oscarehr . common . model . METHOD_1 IDENT_11 = list . get ( 0 ) ; return IDENT_11 ; } else return null ; }
org . junit . Assert . assertEquals ( IDENT_8 , result )