METHOD_0 ( ) { try { db . METHOD_1 ( com . IDENT_0 . IDENT_1 . IDENT_2 , null ) ; final java . util . Collection < java . lang . String > fields = new java . util . ArrayList < java . lang . String > ( ) ; fields . add ( "a" ) ; final com . IDENT_0 . entity . IDENT_3 IDENT_4 = db . collection ( com . IDENT_0 . IDENT_1 . IDENT_2 ) . METHOD_2 ( fields , null ) ; final java . lang . String id = db . METHOD_0 ( IDENT_4 . getId ( ) ) ; "<AssertPlaceHolder>" ; try { db . METHOD_3 ( id ) ; org . junit . Assert . fail ( ) ; } catch ( final com . IDENT_0 . IDENT_5 e ) { } } finally { db . collection ( com . IDENT_0 . IDENT_1 . IDENT_2 ) . METHOD_4 ( ) ; } } getId ( ) { return id ; }
org . junit . Assert . assertThat ( id , org . hamcrest . Matchers . is ( IDENT_4 . getId ( ) ) )