METHOD_0 ( ) { com . IDENT_0 . core . service . IDENT_1 IDENT_2 = IDENT_3 . METHOD_1 ( ) ; com . IDENT_0 . core . service . IDENT_4 IDENT_5 = mock ( com . IDENT_0 . core . service . IDENT_4 . class ) ; when ( IDENT_5 . METHOD_2 ( ) ) . METHOD_3 ( new org . apache . IDENT_6 . IDENT_7 . METHOD_4 ( ) ) ; org . springframework . test . util . IDENT_8 . METHOD_5 ( IDENT_2 , STRING_0 , IDENT_5 ) ; com . IDENT_0 . core . model . IDENT_9 connection = new com . IDENT_0 . core . model . IDENT_9 . Builder ( ) . provider ( IDENT_10 . METHOD_6 ( IDENT_11 . IDENT_12 ) ) . METHOD_7 ( IDENT_13 ) . METHOD_8 ( STRING_1 ) . description ( STRING_2 ) . user ( IDENT_14 ) . METHOD_9 ( IDENT_15 . IDENT_16 ) . METHOD_10 ( new com . IDENT_0 . core . model . METHOD_11 ( STRING_3 , STRING_4 ) ) . build ( ) ; com . IDENT_0 . core . model . IDENT_17 event = IDENT_2 . METHOD_12 ( IDENT_18 . IDENT_19 , connection , null ) ; "<AssertPlaceHolder>" ; } METHOD_12 ( com . IDENT_0 . core . event . IDENT_18 , T extends com . IDENT_0 . core . model . IDENT_20 , java . util . Map ) { com . IDENT_0 . core . model . IDENT_21 METHOD_7 = null ; com . IDENT_0 . core . model . User user = null ; try { user = IDENT_22 . METHOD_2 ( ) ; METHOD_7 = user . METHOD_13 ( ) ; } catch ( org . apache . IDENT_6 . IDENT_7 . METHOD_4 IDENT_23 ) { if ( IDENT_24 == ( com . IDENT_0 . core . event . IDENT_18 . IDENT_25 ) ) { logger . debug ( ( ( ( STRING_5 + target ) + STRING_6 6 ) + IDENT_24 ) ) ; return null ; } } catch ( org . apache . IDENT_6 . IDENT_26 e ) { logger . warn ( ( ( STRING_5 4 + target ) + STRING_6 9 ) , e ) ; } catch ( java . lang . Exception IDENT_27 ) { logger . warn ( STRING_6 2 , IDENT_27 ) ; } if ( IDENT_28 == null ) { IDENT_28 = new java . util . HashMap ( ) ; } if ( target != null ) { IDENT_28 . put ( STRING_6 3 , target . getId ( ) ) ; IDENT_28 . put ( STRING_7 8 , target . METHOD_14 ( ) ) ; IDENT_28 . put ( STRING_7 0 , target . getClass ( ) . METHOD_15 ( ) ) ; if ( target instanceof com . IDENT_0 . core . model . IDENT_29 ) { com . IDENT_0 . core . model . IDENT_29 IDENT_30 = ( ( com . IDENT_0 . core . model . IDENT_29 ) ( target ) ) ; if ( user == null ) { user = IDENT_30 . METHOD_16 ( ) ; METHOD_7 = IDENT_30 . METHOD_13 ( ) ; } IDENT_28 . put ( STRING_7 6 , IDENT_30 . METHOD_17 ( ) ) ; IDENT_28 . put ( STRING_6 1 , IDENT_30 . METHOD_18 ( ) ) ; IDENT_28 . put ( STRING_8 , IDENT_30 . METHOD_19 ( ) ) ; } if ( target instanceof com . IDENT_0 . core . model . IDENT_21 ) { com . IDENT_0 . core . model . IDENT_21 IDENT_31 = ( ( com . IDENT_0 . core . model . IDENT_21 ) ( target ) ) ; IDENT_28 . put ( STRING_6 8 , IDENT_31 . METHOD_20 ( ) ) ; IDENT_28 . put ( STRING_9 , IDENT_31 . getName ( ) ) ; } else if ( target instanceof com . IDENT_0 . core . model . IDENT_32 ) { com . IDENT_0 . core . model . IDENT_32 IDENT_33 = ( ( com . IDENT_0 . core . model . IDENT_32 ) ( target ) ) ; com . IDENT_0 . core . model . IDENT_9 connection = IDENT_33 . METHOD_21 ( ) ; com . IDENT_0 . IDENT_34 . IDENT_35 IDENT_36 = IDENT_10 . METHOD_6 ( connection . METHOD_22 ( ) ) ; IDENT_28 . put ( STRING_7 1 , IDENT_33 . METHOD_23 ( ) ) ; IDENT_28 . put ( STRING_7 , IDENT_33 . getType ( ) ) ; IDENT_28 . put ( STRING_5 6 , connection . getId ( ) ) ; IDENT_28 . put ( STRING_10 , connection . METHOD_18 ( ) ) ; IDENT_28 . put ( STRING_11 , connection . METHOD_19 ( ) ) ; IDENT_28 . put ( STRING_6 7 , connection . METHOD_14 ( ) ) ; IDENT_28 . put ( STRING_5 2 , IDENT_36 . getId ( ) ) ; IDENT_28 . put ( STRING_5 0 , IDENT_36 . METHOD_24 ( ) ) ; IDENT_28 . put ( STRING_5 9 , IDENT_36 . getType ( ) ) ; IDENT_28 . METHOD_25 ( METHOD_26 ( IDENT_33 ) ) ; } else if ( target instanceof com . IDENT_0 . core . model . IDENT_9 ) { com . IDENT_0 . core . model . IDENT_9 IDENT_37 = ( ( com . IDENT_0 . core . model . IDENT_9 ) ( target ) ) ; com . IDENT_0 . IDENT_34 . IDENT_35 IDENT_36 = IDENT_10 . METHOD_6 ( IDENT_37 . METHOD_22 ( ) ) ; IDENT_28 . put ( STRING_5 2 , IDENT_36 . getId ( ) ) ; IDENT_28 . put ( STRING_5 0 , IDENT_36 . METHOD_24 ( ) ) ; IDENT_28 . put ( STRING_5 9 , IDENT_36 . getType ( ) ) ; } else if ( target instanceof com . IDENT_0 . core . model . User ) { com . IDENT_0 . core . model . User IDENT_38 = ( ( com . IDENT_0 . core . model . User ) ( target ) ) ; IDENT_28 . put ( STRING_6 8 , IDENT_38 . METHOD_20 ( ) ) ; IDENT_28 . put ( STRING_6 0 , IDENT_38 . METHOD_27 ( ) ) ; IDENT_28 . put ( STRING_5 3 , IDENT_38 . METHOD_28 ( ) ) ; } else if ( target instanceof com . IDENT_0 . core . model . messages . IDENT_39 ) { } if ( user == null ) { if ( ( ( ! ( target instanceof com . IDENT_0 . core . model . IDENT_21 ) ) && ( ! ( target instanceof com . IDENT_0 . core . model . User ) ) ) && ( ! ( target instanceof com . IDENT_0 . core . model . messages . IDENT_39 ) ) ) { logger . debug ( ( ( ( STRING_5 7 + target ) + STRING_6 6 ) + IDENT_24 ) ) ; return null ; } else { switch ( IDENT_24 ) { case IDENT_19 : if ( target instanceof com . IDENT_0 . core . model . IDENT_21 ) { METHOD_7 = ( ( com . IDENT_0 . core . model . IDENT_21 ) ( target ) ) ; user = null ; } else if ( target instanceof com . IDENT_0 . core . model . User ) { METHOD_7 = user . METHOD_13 ( ) ; user = null ; } else if ( target instanceof com . IDENT_0 . core . model . messages . IDENT_39 ) { if ( user != null ) { break ; } org . bson . types . IDENT_40 IDENT_41 = ( ( IDENT_28 . get ( STRING_7 2 ) ) != null ) ? ( ( org . bson . types . IDENT_40 ) ( IDENT_28 . get ( STRING_7 2 ) ) ) : null ; com . IDENT_0 . core . model . IDENT_17 IDENT_42 = METHOD_29 ( IDENT_41 ) ; org . bson . types . IDENT_40 IDENT_43 = ( ( IDENT_28 . get ( STRING_5 5 ) ) != null ) ? ( ( org . bson . types . IDENT_40 ) ( IDENT_28 . get ( STRING_5 5 ) ) ) : null ; if ( IDENT_43 != null ) { try { user = IDENT_44 . METHOD_30 ( IDENT_43 ) ; } catch ( com . IDENT_0 . core . service . exception . IDENT_45 IDENT_46 ) { if ( IDENT_42 != null ) { try { user = IDENT_44 . METHOD_30 ( IDENT_42 . METHOD_31 ( ) ) ; } catch ( com . IDENT_0 . core . service . exception . IDENT_45 IDENT_47 ) { logger . error ( ( ( STRING_5 8 + STRING_6 4 ) + ( target . getId ( ) ) ) ) ; } } } } org . bson . types . IDENT_40 IDENT_48 = ( ( IDENT_28 . get ( STRING_7 7 ) ) != null ) ? ( ( org . bson . types . IDENT_40 ) ( IDENT_28 . get ( STRING_7 7 ) ) ) : null ; if ( IDENT_48 != null ) { try { METHOD_7 = IDENT_44 . METHOD_13 ( IDENT_48 ) ; } catch ( com . IDENT_0 . core . service . exception . IDENT_49 IDENT_50 ) { if ( IDENT_42 != null ) { try { METHOD_7 = IDENT_44 . METHOD_13 ( IDENT_42 . METHOD_32 ( ) ) ; } catch ( com . IDENT_0 . core . service . exception . IDENT_49 IDENT_51 ) { logger . error ( ( ( STRING_5 8 + STRING_6 4 ) + ( target . getId ( ) ) ) ) ; } } } } } break ; case IDENT_52 : METHOD_7 = null ; break ; case IDENT_53 : user = ( ( com . IDENT_0 . core . model . User ) ( target ) ) ; METHOD_7 = user . METHOD_13 ( ) ; break ; case IDENT_25 : case IDENT_54 : case IDENT_55 : case IDENT_56 : case IDENT_57 : case IDENT_58 : if ( ( IDENT_24 == ( com . IDENT_0 . core . event . IDENT_18 . IDENT_55 ) ) && ( target instanceof com . IDENT_0 . core . model . IDENT_21 ) ) { METHOD_7 = ( ( com . IDENT_0 . core . model . IDENT_21 ) ( target ) ) ; } else { logger . warn ( ( ( ( STRING_7 5 + target ) + STRING_6 6 ) + IDENT_24 ) ) ; return null ; } } } } } if ( user != null ) { IDENT_28 . put ( STRING_6 5 , user . METHOD_18 ( ) ) ; IDENT_28 . put ( STRING_5 1 , user . METHOD_20 ( ) ) ; IDENT_28 . put ( STRING_7 3 , user . METHOD_27 ( ) ) ; IDENT_28 . put ( STRING_12 , user . METHOD_28 ( ) ) ; IDENT_28 . put ( STRING_13 , user . METHOD_14 ( ) ) ; } if ( METHOD_7 != null ) { IDENT_28 . put ( STRING_7 4 , METHOD_7 . METHOD_20 ( ) ) ; IDENT_28 . put ( STRING_14 , METHOD_7 . getName ( ) ) ; IDENT_28 . put ( STRING_6 , METHOD_7 . METHOD_14 ( ) ) ; } for ( Map . Entry < java . lang . String , java . lang . Object > IDENT_59 : IDENT_28 . entrySet ( ) ) { java . lang . String key = IDENT_59 . getKey ( ) ; java . lang . Object IDENT_60 = IDENT_59 . getValue ( ) ; if ( IDENT_60 instanceof net . sf . json . JSONObject ) { IDENT_28 . put ( key , com . mongodb . util . IDENT_61 . parse ( IDENT_60 . toString ( ) ) ) ; } } return METHOD_33 ( new com . IDENT_0 . core . model . IDENT_17 . Builder ( ) . METHOD_34 ( METHOD_34 ) . METHOD_35 ( ( METHOD_7 != null ? METHOD_7 . getId ( ) : null ) ) . METHOD_36 ( ( user != null ? user . getId ( ) : null ) ) . METHOD_37 ( ( target != null ? target . getId ( ) : null ) ) . context ( IDENT_28 ) . build ( ) ) ; }
org . junit . Assert . assertNotNull ( event )