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 ; boolean IDENT_4 = true ; org . oscarehr . common . model . IDENT_5 IDENT_6 = new org . oscarehr . common . model . METHOD_1 ( ) ; org . oscarehr . common . dao . utils . IDENT_7 . METHOD_2 ( IDENT_6 ) ; IDENT_6 . METHOD_3 ( IDENT_0 ) ; IDENT_6 . METHOD_4 ( IDENT_2 ) ; IDENT_6 . METHOD_5 ( IDENT_4 ) ; dao . METHOD_6 ( IDENT_6 ) ; org . oscarehr . common . model . METHOD_1 IDENT_8 = new org . oscarehr . common . model . METHOD_1 ( ) ; org . oscarehr . common . dao . utils . IDENT_7 . METHOD_2 ( IDENT_8 ) ; IDENT_8 . METHOD_3 ( IDENT_1 ) ; IDENT_8 . METHOD_4 ( IDENT_3 ) ; IDENT_8 . METHOD_5 ( IDENT_4 ) ; dao . METHOD_6 ( IDENT_8 ) ; org . oscarehr . common . model . METHOD_1 IDENT_9 = new org . oscarehr . common . model . METHOD_1 ( ) ; org . oscarehr . common . dao . utils . IDENT_7 . METHOD_2 ( IDENT_9 ) ; IDENT_9 . METHOD_3 ( IDENT_0 ) ; IDENT_9 . METHOD_4 ( IDENT_2 ) ; IDENT_9 . METHOD_5 ( ( ! IDENT_4 ) ) ; dao . METHOD_6 ( IDENT_9 ) ; org . oscarehr . common . model . METHOD_1 IDENT_10 = IDENT_6 ; org . oscarehr . common . model . METHOD_1 result = dao . METHOD_7 ( IDENT_0 , IDENT_2 ) ; "<AssertPlaceHolder>" ; } METHOD_7 ( java . lang . String , java . lang . String ) { javax . persistence . Query query = IDENT_11 . METHOD_8 ( STRING_4 ) ; query . METHOD_9 ( 1 , IDENT_12 ) ; query . METHOD_9 ( 2 , name ) ; java . util . List < org . oscarehr . common . model . METHOD_1 > list = query . METHOD_10 ( ) ; if ( ( list != null ) && ( ( list . size ( ) ) > 0 ) ) { org . oscarehr . common . model . METHOD_1 IDENT_13 = list . get ( 0 ) ; return IDENT_13 ; } else return null ; }
org . junit . Assert . assertEquals ( IDENT_10 , result )