METHOD_0 ( ) { java . nio . file . Path path = METHOD_1 ( ) ; org . apache . solr . core . IDENT_0 loader = new org . apache . solr . core . METHOD_2 ( path ) ; org . apache . solr . core . IDENT_1 config = new org . apache . solr . core . IDENT_1 . METHOD_3 ( STRING_0 , loader ) . METHOD_4 ( java . nio . file . IDENT_2 . get ( org . IDENT_3 . IDENT_4 . dao . IDENT_5 . METHOD_5 ( ) ) . resolve ( STRING_1 ) . toString ( ) ) . build ( ) ; try ( org . apache . solr . client . IDENT_6 . IDENT_7 . IDENT_8 server = new org . apache . solr . client . IDENT_6 . IDENT_7 . METHOD_6 ( config , STRING_2 ) ) { org . apache . solr . client . IDENT_6 . request . IDENT_9 . IDENT_10 IDENT_11 = new org . apache . solr . client . IDENT_6 . request . IDENT_9 . METHOD_7 ( ) ; IDENT_11 . METHOD_8 ( STRING_2 ) ; IDENT_11 . METHOD_9 ( STRING_3 ) ; server . request ( IDENT_11 ) ; java . util . HashMap < java . lang . String , java . lang . Object > fields = new java . util . HashMap ( ) ; fields . put ( STRING_4 , new java . lang . Integer ( 1 ) ) ; org . apache . solr . client . IDENT_6 . request . schema . IDENT_12 . IDENT_13 IDENT_14 = new org . apache . solr . client . IDENT_6 . request . schema . IDENT_12 . METHOD_10 ( fields ) ; server . request ( IDENT_14 ) ; org . IDENT_3 . IDENT_4 . dao . IDENT_15 dao = new org . IDENT_3 . IDENT_4 . dao . METHOD_11 ( ) ; dao . METHOD_12 ( server ) ; dao . METHOD_13 ( 0 ) ; org . IDENT_3 . spec . IDENT_4 . IDENT_16 event = new org . IDENT_3 . IDENT_4 . model . METHOD_14 ( STRING_5 , STRING_6 , STRING_7 , STRING_8 . getBytes ( ) , STRING_9 ) ; event . setId ( 1 ) ; dao . save ( event ) ; "<AssertPlaceHolder>" ; server . close ( ) ; } } find ( java . lang . String ) { org . hibernate . IDENT_17 . IDENT_18 criteria = org . hibernate . IDENT_17 . IDENT_18 . METHOD_15 ( org . IDENT_3 . error . IDENT_19 . model . IDENT_20 . class ) ; criteria . add ( org . hibernate . IDENT_17 . IDENT_21 . eq ( STRING_9 , uri ) ) ; org . IDENT_3 . error . IDENT_19 . dao . List < org . IDENT_3 . spec . error . IDENT_19 . IDENT_22 > results = ( ( org . IDENT_3 . error . IDENT_19 . dao . List < org . IDENT_3 . spec . error . IDENT_19 . IDENT_22 > ) ( this . METHOD_16 ( ) . METHOD_17 ( criteria ) ) ) ; if ( ( results == null ) || ( ( results . size ( ) ) == 0 ) ) { return null ; } return results . get ( 0 ) ; }
org . junit . Assert . assertNotNull ( dao . find ( STRING_9 ) )