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