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