METHOD_0 ( ) { org . oscarehr . common . model . IDENT_0 entity = new org . oscarehr . common . model . METHOD_1 ( ) ; org . oscarehr . common . dao . utils . IDENT_1 . METHOD_2 ( entity ) ; entity . METHOD_3 ( STRING_0 ) ; entity . METHOD_4 ( 20 ) ; dao . METHOD_5 ( entity ) ; org . oscarehr . common . model . METHOD_1 IDENT_2 = dao . METHOD_6 ( 20 , STRING_0 ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( java . lang . Integer , java . lang . String ) { if ( ( IDENT_3 == null ) || ( ( IDENT_3 . METHOD_7 ( ) ) <= 0 ) ) { throw new java . lang . IllegalArgumentException ( ) ; } if ( ( key == null ) || ( ( key . length ( ) ) <= 0 ) ) { throw new java . lang . IllegalArgumentException ( ) ; } javax . persistence . Query query = IDENT_4 . METHOD_8 ( STRING_1 ) ; query . METHOD_9 ( 1 , IDENT_3 ) ; query . METHOD_9 ( 2 , key ) ; @ org . oscarehr . common . dao . METHOD_10 ( STRING_2 ) java . util . List < org . oscarehr . common . model . METHOD_1 > results = query . METHOD_11 ( ) ; if ( results . isEmpty ( ) ) return null ; org . oscarehr . common . model . METHOD_1 result = results . get ( 0 ) ; return result ; }
org . junit . Assert . assertEquals ( entity , IDENT_2 )