METHOD_0 ( ) { final com . IDENT_0 . IDENT_1 IDENT_2 = new com . IDENT_0 . IDENT_1 . Builder ( ) . build ( ) ; IDENT_2 . METHOD_1 ( ) ; try { IDENT_2 . METHOD_2 ( STRING_0 ) ; IDENT_2 . METHOD_2 ( STRING_1 ) ; final com . IDENT_0 . IDENT_3 IDENT_4 = IDENT_2 . db ( STRING_0 ) ; final com . IDENT_0 . IDENT_3 IDENT_5 = IDENT_2 . db ( STRING_1 ) ; final java . util . Collection < java . lang . String > result = new java . util . concurrent . IDENT_6 < java . lang . String > ( ) ; final java . lang . Thread IDENT_7 = new java . lang . Thread ( ) { @ com . IDENT_0 . internal . IDENT_8 . Override public void run ( ) { try { IDENT_4 . query ( STRING_2 , null , null , null ) ; result . add ( "1" ) ; } catch ( final com . IDENT_0 . IDENT_9 e ) { } } } ; final java . lang . Thread IDENT_10 = new java . lang . Thread ( ) { @ com . IDENT_0 . internal . IDENT_8 . Override public void run ( ) { try { IDENT_5 . query ( STRING_2 , null , null , null ) ; result . add ( "1" ) ; } catch ( final com . IDENT_0 . IDENT_9 e ) { } } } ; IDENT_10 . start ( ) ; IDENT_7 . start ( ) ; IDENT_10 . join ( ) ; IDENT_7 . join ( ) ; "<AssertPlaceHolder>" ; } finally { IDENT_2 . db ( STRING_0 ) . METHOD_3 ( ) ; IDENT_2 . db ( STRING_1 ) . METHOD_3 ( ) ; } } query ( java . lang . String , java . util . Map , com . IDENT_0 . model . IDENT_11 , java . lang . Class ) { final com . IDENT_0 . IDENT_8 . IDENT_12 request = METHOD_4 ( query , IDENT_13 , options ) ; final com . IDENT_0 . internal . net . IDENT_14 IDENT_15 = new com . IDENT_0 . internal . net . METHOD_5 ( ) ; final com . IDENT_0 . entity . IDENT_16 result = executor . execute ( request , com . IDENT_0 . entity . IDENT_16 . class , IDENT_15 ) ; return METHOD_6 ( result , type , options , IDENT_15 ) ; }
org . junit . Assert . assertThat ( result . size ( ) , org . hamcrest . Matchers . is ( 2 ) )