METHOD_0 ( ) { java . util . List < com . mongodb . IDENT_0 > IDENT_1 = new java . util . ArrayList < com . mongodb . IDENT_0 > ( ) ; IDENT_1 . add ( new com . mongodb . METHOD_1 ( STRING_0 , STRING_1 ) ) ; IDENT_1 . add ( new com . mongodb . METHOD_1 ( STRING_0 , STRING_2 ) ) ; com . mongodb . IDENT_2 IDENT_3 = new com . mongodb . METHOD_2 ( ) ; IDENT_3 . add ( new com . mongodb . METHOD_1 ( STRING_3 , IDENT_1 ) ) ; java . util . List < java . lang . String > IDENT_4 = new java . util . ArrayList < java . lang . String > ( ) ; IDENT_4 . add ( STRING_1 ) ; IDENT_4 . add ( STRING_4 ) ; org . mockito . Mockito . when ( db . command ( ( ( com . mongodb . IDENT_0 ) ( org . mockito . Matchers . any ( ) ) ) ) ) . thenReturn ( res ) ; org . mockito . Mockito . when ( res . get ( STRING_3 ) ) . thenReturn ( IDENT_3 ) ; java . lang . String result = org . slc . sli . IDENT_5 . util . IDENT_6 . METHOD_3 ( IDENT_7 , IDENT_8 , IDENT_9 ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( db , org . mockito . Mockito . times ( 1 ) ) . command ( new com . mongodb . METHOD_1 ( STRING_5 , IDENT_8 ) ) ; org . mockito . Mockito . verify ( db , org . mockito . Mockito . times ( 2 ) ) . command ( new com . mongodb . METHOD_1 ( STRING_6 , 1 ) ) ; org . mockito . Mockito . verify ( db , org . mockito . Mockito . times ( INT_0 ) ) . command ( org . mockito . Matchers . any ( com . mongodb . IDENT_0 . class ) ) ; org . mockito . Mockito . verify ( IDENT_10 , org . mockito . Mockito . times ( 1 ) ) . update ( org . mockito . Matchers . any ( com . mongodb . IDENT_0 . class ) , org . mockito . Matchers . any ( com . mongodb . IDENT_0 . class ) , org . mockito . Matchers . eq ( true ) , org . mockito . Matchers . eq ( false ) ) ; } METHOD_3 ( java . util . Set , java . lang . String , org . springframework . data . mongodb . core . IDENT_11 ) { com . mongodb . IDENT_12 IDENT_13 = IDENT_14 . METHOD_4 ( ) . METHOD_5 ( STRING_7 ) ; java . util . List < java . lang . String > IDENT_1 = org . slc . sli . IDENT_5 . util . IDENT_6 . METHOD_6 ( IDENT_13 ) ; if ( ( IDENT_1 . size ( ) ) == 0 ) { return null ; } java . lang . String IDENT_15 = org . slc . sli . IDENT_5 . util . IDENT_6 . METHOD_7 ( IDENT_13 , false ) ; if ( IDENT_15 != null ) { return IDENT_15 ; } com . mongodb . IDENT_0 IDENT_16 = new com . mongodb . METHOD_1 ( STRING_5 , IDENT_8 ) ; com . mongodb . IDENT_17 result = IDENT_13 . command ( IDENT_16 ) ; if ( ! ( result . METHOD_8 ( ) ) ) { org . slc . sli . IDENT_5 . util . IDENT_6 . LOG . error ( STRING_8 , IDENT_13 , result . METHOD_9 ( ) ) ; return result . METHOD_9 ( ) ; } for ( java . lang . String IDENT_18 : IDENT_7 ) { java . lang . String collection = ( IDENT_8 + STRING_9 ) + IDENT_18 ; com . mongodb . IDENT_0 IDENT_19 = new com . mongodb . METHOD_1 ( ) ; IDENT_19 . put ( STRING_10 , collection ) ; IDENT_19 . put ( STRING_11 , new com . mongodb . METHOD_1 ( org . slc . sli . IDENT_5 . util . IDENT_6 . IDENT_20 , 1 ) ) ; result = IDENT_13 . command ( IDENT_19 ) ; if ( ! ( result . METHOD_8 ( ) ) ) { org . slc . sli . IDENT_5 . util . IDENT_6 . LOG . error ( STRING_12 , collection , result . METHOD_9 ( ) ) ; return result . METHOD_9 ( ) ; } IDENT_15 = org . slc . sli . IDENT_5 . util . IDENT_6 . METHOD_10 ( collection , IDENT_1 , IDENT_13 ) ; if ( IDENT_15 != null ) { return IDENT_15 ; } } return org . slc . sli . IDENT_5 . util . IDENT_6 . METHOD_11 ( IDENT_8 , IDENT_14 ) ; }
org . junit . Assert . assertNull ( result )