METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 IDENT_5 = IDENT_3 . IDENT_4 . newInstance ( ) ; java . lang . String IDENT_6 = STRING_0 ; com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_8 parameters = mock ( com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_8 . class , com . IDENT_0 . IDENT_1 . repository . database . IDENT_9 ) ; java . util . List < java . util . Map > expected = mock ( java . util . List . class ) ; when ( parameters . METHOD_1 ( ) . METHOD_1 ( ) ) . thenReturn ( STRING_0 ) ; when ( transaction . select ( anyString ( ) , eq ( IDENT_5 ) , eq ( true ) , eq ( IDENT_6 ) , anyString ( ) ) ) . thenReturn ( expected ) ; java . util . List < java . util . Map > result = IDENT_10 . METHOD_2 ( IDENT_5 , IDENT_6 , parameters ) ; "<AssertPlaceHolder>" ; METHOD_3 ( new java . lang . RuntimeException ( ) ) . when ( transaction ) . select ( anyString ( ) , eq ( IDENT_5 ) , eq ( true ) , eq ( IDENT_6 ) , anyString ( ) ) ; IDENT_10 . METHOD_2 ( IDENT_5 , IDENT_6 , parameters ) ; org . junit . Assert . fail ( ) ; } METHOD_2 ( com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_11 , java . lang . String , com . IDENT_0 . IDENT_1 . IDENT_7 . IDENT_8 ) { java . util . List IDENT_12 ; try { java . lang . String IDENT_13 = STRING_1 + ( STRING_2 + STRING_3 ) ; IDENT_12 = transaction . select ( IDENT_13 , IDENT_5 , true , IDENT_6 , parameters . METHOD_1 ( ) . METHOD_1 ( ) ) ; return IDENT_12 ; } catch ( java . lang . Exception e ) { throw new com . IDENT_0 . IDENT_1 . repository . METHOD_4 ( STRING_4 , e ) ; } }
org . junit . Assert . assertThat ( result , org . hamcrest . core . Is . is ( expected ) )