METHOD_0 ( ) { IDENT_0 . save ( new com . baeldung . model . User ( STRING_0 , INT_0 ) ) ; IDENT_0 . save ( new com . baeldung . model . User ( STRING_1 , INT_1 ) ) ; org . springframework . data . mongodb . core . query . Query query = new org . springframework . data . mongodb . core . query . Query ( ) . METHOD_1 ( org . springframework . data . mongodb . core . query . IDENT_1 . METHOD_2 ( "name" ) . is ( STRING_0 ) ) ; java . util . List < com . baeldung . model . User > IDENT_2 = IDENT_3 . find ( query , com . baeldung . model . User . class ) ; "<AssertPlaceHolder>" ; } size ( ) { return elements . size ( ) ; }
org . junit . Assert . assertThat ( IDENT_2 . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) )