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