METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . as . data . IDENT_2 host = com . IDENT_0 . IDENT_1 . IDENT_3 . jpa ( ) . METHOD_1 ( ) . METHOD_2 ( IDENT_4 ) ; "<AssertPlaceHolder>" ; com . IDENT_0 . IDENT_1 . as . business . IDENT_5 IDENT_6 = new com . IDENT_0 . IDENT_1 . as . business . METHOD_3 ( ) ; com . IDENT_0 . IDENT_1 . as . business . IDENT_7 . IDENT_8 IDENT_9 = new com . IDENT_0 . IDENT_1 . as . business . IDENT_7 . METHOD_4 ( ) ; IDENT_9 . METHOD_5 ( IDENT_6 ) ; com . IDENT_0 . IDENT_1 . policy . IDENT_10 report = IDENT_9 . METHOD_6 ( host , IDENT_4 , null ) ; java . util . List < com . IDENT_0 . IDENT_1 . policy . IDENT_11 > results = report . METHOD_7 ( STRING_0 ) ; for ( com . IDENT_0 . IDENT_1 . policy . IDENT_11 result : results ) { log . debug ( STRING_1 , result . METHOD_8 ( ) ) ; java . util . List < com . IDENT_0 . IDENT_1 . policy . IDENT_12 > IDENT_13 = result . METHOD_9 ( ) ; log . debug ( STRING_2 , IDENT_13 . size ( ) ) ; for ( com . IDENT_0 . IDENT_1 . policy . IDENT_12 IDENT_14 : IDENT_13 ) { log . debug ( STRING_3 , IDENT_14 . METHOD_10 ( ) , IDENT_14 . toString ( ) ) ; } } } METHOD_2 ( java . lang . String ) { javax . persistence . IDENT_15 em = METHOD_11 ( ) ; try { javax . persistence . Query query = em . METHOD_12 ( STRING_4 ) ; query . METHOD_13 ( "name" , name ) ; query . METHOD_14 ( IDENT_16 . IDENT_17 , IDENT_18 . IDENT_19 ) ; com . IDENT_0 . IDENT_1 . as . data . IDENT_20 IDENT_21 = ( ( com . IDENT_0 . IDENT_1 . as . data . IDENT_20 ) ( query . METHOD_15 ( ) ) ) ; return IDENT_21 ; } finally { em . close ( ) ; } }
org . junit . Assert . assertNotNull ( host )