METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . IDENT_2 IDENT_1 = new com . IDENT_0 . IDENT_1 . METHOD_1 ( ) ; java . util . List < com . IDENT_0 . IDENT_3 . IDENT_4 > results = new java . util . ArrayList < com . IDENT_0 . IDENT_3 . IDENT_4 > ( ) ; com . IDENT_0 . IDENT_3 . IDENT_4 IDENT_5 = org . easymock . EasyMock . METHOD_2 ( com . IDENT_0 . IDENT_3 . IDENT_4 . class ) ; results . add ( IDENT_5 ) ; com . IDENT_0 . IDENT_3 . IDENT_6 IDENT_7 = org . easymock . EasyMock . METHOD_3 ( com . IDENT_0 . IDENT_3 . IDENT_6 . class ) ; org . easymock . EasyMock . expect ( IDENT_7 . METHOD_4 ( ) ) . andReturn ( 1 ) ; org . easymock . EasyMock . expect ( IDENT_7 . METHOD_5 ( ) ) . andReturn ( results ) ; org . easymock . EasyMock . replay ( IDENT_7 ) ; java . lang . String text = STRING_0 ; java . lang . String IDENT_8 = STRING_1 ; com . IDENT_0 . IDENT_3 . IDENT_9 IDENT_10 = org . easymock . EasyMock . METHOD_3 ( com . IDENT_0 . IDENT_3 . IDENT_9 . class ) ; com . IDENT_0 . IDENT_3 . IDENT_11 query = new com . IDENT_0 . IDENT_3 . METHOD_6 ( text , com . IDENT_0 . domain . IDENT_12 . IDENT_13 . IDENT_14 , METHOD_1 . IDENT_15 , com . IDENT_0 . IDENT_3 . Constants . IDENT_16 , IDENT_8 ) ; query . METHOD_7 ( false ) . METHOD_8 ( ) ; org . easymock . EasyMock . expect ( IDENT_10 . METHOD_9 ( query ) ) . andReturn ( IDENT_7 ) ; org . easymock . EasyMock . replay ( IDENT_10 ) ; IDENT_1 . METHOD_10 ( IDENT_10 ) ; com . IDENT_0 . IDENT_3 . IDENT_4 actual = IDENT_1 . METHOD_0 ( text , IDENT_8 ) ; "<AssertPlaceHolder>" ; org . easymock . EasyMock . verify ( IDENT_10 ) ; } METHOD_0 ( java . lang . String , java . lang . String ) { if ( name == null ) { return null ; } com . IDENT_0 . IDENT_3 . METHOD_6 query ; try { query = ( ( com . IDENT_0 . IDENT_3 . METHOD_6 ) ( new com . IDENT_0 . IDENT_3 . METHOD_6 ( name ) . METHOD_7 ( false ) . METHOD_8 ( ) . METHOD_11 ( com . IDENT_0 . IDENT_1 . IDENT_16 ) . METHOD_12 ( com . IDENT_0 . IDENT_1 . IDENT_17 . IDENT_18 ) . METHOD_13 ( IDENT_13 . IDENT_14 ) ) ) ; } catch ( java . lang . IllegalArgumentException e ) { com . IDENT_0 . IDENT_1 . IDENT_17 . logger . error ( ( STRING_2 + name ) ) ; return null ; } if ( IDENT_8 != null ) { query . METHOD_14 ( IDENT_8 ) ; } com . IDENT_0 . IDENT_3 . IDENT_6 results ; try { results = IDENT_19 . METHOD_9 ( query ) ; } catch ( com . IDENT_0 . service . IDENT_20 e ) { com . IDENT_0 . IDENT_1 . IDENT_17 . logger . error ( ( ( ( STRING_3 + name ) + STRING_4 ) + e ) ) ; return null ; } if ( results != null ) { for ( com . IDENT_0 . IDENT_3 . IDENT_4 IDENT_5 : results . METHOD_5 ( ) ) { return IDENT_5 ; } } return null ; }
org . junit . Assert . assertEquals ( IDENT_5 , actual )