METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 IDENT_5 = com . IDENT_0 . query . IDENT_6 . IDENT_7 . METHOD_1 ( com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 . class ) ; com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_8 IDENT_9 = com . IDENT_0 . query . METHOD_1 . IDENT_7 . METHOD_1 ( com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_8 . class , METHOD_2 ( IDENT_5 . METHOD_3 ( ) ) . any ( ) ) ; com . IDENT_0 . IDENT_1 . object . IDENT_10 IDENT_11 = session . from ( METHOD_2 ( IDENT_5 ) ) . METHOD_4 ( METHOD_2 ( IDENT_9 . METHOD_5 ( ) ) . METHOD_6 ( ) ) ; "<AssertPlaceHolder>" ; } count ( ) { com . IDENT_0 . IDENT_1 . model . IDENT_12 query = METHOD_7 ( true ) ; if ( ! ( connection . METHOD_8 ( ) . METHOD_9 ( ) ) ) { long IDENT_13 = 0 ; com . IDENT_0 . commons . lang . IDENT_14 < java . util . Map < java . lang . String , com . IDENT_0 . IDENT_1 . model . IDENT_15 > > IDENT_16 = query . METHOD_10 ( ) ; try { while ( IDENT_16 . hasNext ( ) ) { IDENT_13 ++ ; IDENT_16 . next ( ) ; } } finally { IDENT_16 . close ( ) ; } return IDENT_13 ; } else { java . util . List < java . util . Map < java . lang . String , com . IDENT_0 . IDENT_1 . model . IDENT_15 > > results = com . IDENT_0 . commons . lang . IDENT_17 . asList ( query . METHOD_10 ( ) ) ; com . IDENT_0 . IDENT_1 . model . IDENT_15 result = results . get ( 0 ) . values ( ) . iterator ( ) . next ( ) ; if ( result . METHOD_11 ( ) ) { return java . lang . Long . valueOf ( result . getValue ( ) ) ; } else { throw new java . lang . IllegalArgumentException ( result . toString ( ) ) ; } } }
org . junit . Assert . assertEquals ( 1L , IDENT_11 . count ( ) )