METHOD_0 ( ) { org . springframework . data . mongodb . core . query . Query query = org . mockito . Mockito . mock ( org . springframework . data . mongodb . core . query . Query . class ) ; com . mongodb . IDENT_0 IDENT_1 = org . mockito . Mockito . mock ( com . mongodb . IDENT_0 . class ) ; org . slc . sli . dal . convert . Map < java . lang . String , java . lang . Object > body = entity . METHOD_1 ( ) ; org . slc . sli . dal . convert . Map < java . lang . String , java . lang . Object > fields = new org . slc . sli . dal . convert . HashMap < java . lang . String , java . lang . Object > ( ) ; for ( Map . Entry < java . lang . String , java . lang . Object > entry : body . entrySet ( ) ) { if ( ! ( entry . getKey ( ) . equals ( STRING_0 ) ) ) { fields . put ( ( STRING_1 + ( entry . getKey ( ) ) ) , entry . getValue ( ) ) ; } } final org . slc . sli . dal . convert . Map < java . lang . String , java . lang . Object > IDENT_2 = new org . slc . sli . dal . convert . HashMap < java . lang . String , java . lang . Object > ( ) ; final org . slc . sli . dal . convert . List < org . slc . sli . dal . convert . Map < java . lang . String , java . lang . Object > > IDENT_3 = new org . slc . sli . dal . convert . ArrayList < org . slc . sli . dal . convert . Map < java . lang . String , java . lang . Object > > ( ) ; IDENT_2 . put ( STRING_2 , STRING_3 ) ; IDENT_3 . add ( IDENT_2 ) ; com . mongodb . IDENT_0 IDENT_4 = com . mongodb . IDENT_5 . start ( ) . METHOD_2 ( STRING_4 ) . add ( STRING_5 , IDENT_3 ) . get ( ) ; com . mongodb . IDENT_0 IDENT_6 = new com . mongodb . METHOD_3 ( STRING_6 , new com . mongodb . METHOD_3 ( fields ) ) ; IDENT_4 . METHOD_4 ( IDENT_6 ) ; when ( query . METHOD_5 ( ) ) . thenReturn ( IDENT_1 ) ; when ( IDENT_7 . METHOD_6 ( org . slc . sli . dal . convert . IDENT_8 . IDENT_9 ) ) . thenReturn ( IDENT_10 ) ; when ( IDENT_10 . update ( org . mockito . Mockito . eq ( IDENT_1 ) , org . mockito . Mockito . eq ( IDENT_4 ) , org . mockito . Mockito . eq ( true ) , org . mockito . Mockito . eq ( false ) , org . mockito . Mockito . eq ( IDENT_11 . IDENT_12 ) ) ) . thenReturn ( IDENT_13 ) ; boolean result = IDENT_14 . METHOD_7 ( query , body , org . slc . sli . dal . convert . IDENT_8 . IDENT_9 , org . slc . sli . dal . convert . IDENT_8 . IDENT_9 ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_10 , org . mockito . Mockito . times ( 1 ) ) . update ( org . mockito . Mockito . eq ( IDENT_1 ) , org . mockito . Mockito . eq ( IDENT_4 ) , org . mockito . Mockito . eq ( true ) , org . mockito . Mockito . eq ( false ) , org . mockito . Mockito . eq ( IDENT_11 . IDENT_12 ) ) ; } METHOD_7 ( org . springframework . data . mongodb . core . query . Query , java . util . Map , java . lang . String , java . lang . String ) { final org . slc . sli . common . domain . IDENT_15 IDENT_16 = IDENT_17 . METHOD_8 ( type ) ; if ( IDENT_16 . METHOD_9 ( ) ) { org . springframework . data . mongodb . core . query . IDENT_18 update = new org . springframework . data . mongodb . core . query . METHOD_10 ( ) ; for ( Map . Entry < java . lang . String , java . lang . Object > IDENT_19 : IDENT_20 . entrySet ( ) ) { update . set ( ( STRING_1 + ( IDENT_19 . getKey ( ) ) ) , IDENT_19 . getValue ( ) ) ; } return METHOD_11 ( type ) . METHOD_12 ( query , update ) ; } org . slc . sli . dal . convert . IDENT_0 IDENT_21 = new org . slc . sli . dal . convert . METHOD_3 ( ) ; IDENT_21 . put ( ( STRING_1 + ( IDENT_16 . METHOD_13 ( ) ) ) , new java . util . ArrayList ( ) ) ; org . slc . sli . dal . convert . IDENT_0 IDENT_22 = new org . slc . sli . dal . convert . METHOD_3 ( STRING_6 , IDENT_21 ) ; IDENT_7 . METHOD_6 ( IDENT_23 ) . update ( query . METHOD_5 ( ) , IDENT_22 , false , false , IDENT_11 . IDENT_12 ) ; org . slc . sli . common . util . IDENT_24 . IDENT_25 . METHOD_14 ( false ) ; final java . lang . String IDENT_26 = IDENT_16 . METHOD_13 ( ) ; org . slc . sli . dal . convert . IDENT_0 IDENT_27 = new org . slc . sli . dal . convert . METHOD_3 ( ) ; for ( Map . Entry < java . lang . String , java . lang . Object > IDENT_28 : IDENT_20 . entrySet ( ) ) { if ( ! ( IDENT_28 . getKey ( ) . equals ( IDENT_16 . METHOD_13 ( ) ) ) ) { IDENT_27 . put ( ( STRING_1 + ( IDENT_28 . getKey ( ) ) ) , IDENT_28 . getValue ( ) ) ; } } org . slc . sli . dal . convert . IDENT_0 set = new org . slc . sli . dal . convert . METHOD_3 ( STRING_6 , IDENT_27 ) ; org . slc . sli . dal . convert . IDENT_0 IDENT_29 = null ; if ( IDENT_20 . containsKey ( IDENT_16 . METHOD_13 ( ) ) ) { IDENT_29 = org . slc . sli . dal . convert . IDENT_5 . start ( ) . METHOD_2 ( STRING_4 ) . add ( ( STRING_1 + IDENT_26 ) , IDENT_20 . get ( IDENT_26 ) ) . get ( ) ; } else { IDENT_29 = new org . slc . sli . dal . convert . METHOD_3 ( ) ; } IDENT_29 . METHOD_4 ( set ) ; return IDENT_7 . METHOD_6 ( IDENT_23 ) . update ( query . METHOD_5 ( ) , IDENT_29 , true , false , IDENT_11 . IDENT_12 ) . METHOD_15 ( ) . METHOD_16 ( ) ; }
org . junit . Assert . assertTrue ( result )