METHOD_0 ( ) { final java . lang . String name = ( com . allanbank . mongodb . IDENT_0 . IDENT_1 . IDENT_2 ) + STRING_0 ; METHOD_1 ( ( name + ( com . allanbank . mongodb . IDENT_3 . IDENT_4 . IDENT_5 ) ) ) ; METHOD_1 ( ( name + ( com . allanbank . mongodb . IDENT_3 . IDENT_4 . IDENT_6 ) ) , com . allanbank . mongodb . builder . IDENT_7 . METHOD_2 ( IDENT_4 . IDENT_8 ) ) ; IDENT_9 . METHOD_3 ( IDENT_10 . IDENT_11 ) ; final long IDENT_12 = java . lang . System . currentTimeMillis ( ) ; final byte [ ] buffer = new byte [ INT_0 ] ; final int IDENT_13 = INT_1 ; java . io . File IDENT_14 = null ; java . io . InputStream in = null ; java . io . IDENT_15 out = null ; try { IDENT_14 = java . io . File . METHOD_4 ( STRING_1 , STRING_2 ) ; final java . util . IDENT_16 random = new java . util . METHOD_5 ( IDENT_12 ) ; out = new java . io . METHOD_6 ( IDENT_14 ) ; for ( int i = 0 ; i < IDENT_13 ; ++ i ) { random . METHOD_7 ( buffer ) ; out . write ( buffer ) ; } com . allanbank . mongodb . util . IDENT_17 . close ( out ) ; out = null ; final com . allanbank . mongodb . IDENT_3 . IDENT_4 IDENT_3 = new com . allanbank . mongodb . IDENT_3 . METHOD_8 ( IDENT_9 , name ) ; IDENT_3 . METHOD_9 ( ) ; in = new java . io . METHOD_10 ( IDENT_14 ) ; IDENT_3 . METHOD_11 ( "foo" ) ; final com . allanbank . mongodb . bson . element . IDENT_18 id = IDENT_3 . write ( "foo" , in ) ; com . allanbank . mongodb . util . IDENT_17 . close ( in ) ; in = null ; "<AssertPlaceHolder>" ; } catch ( final java . io . IOException IDENT_19 ) { METHOD_12 ( IDENT_19 ) ; } finally { com . allanbank . mongodb . util . IDENT_17 . close ( in ) ; com . allanbank . mongodb . util . IDENT_17 . close ( out ) ; if ( IDENT_14 != null ) { IDENT_14 . delete ( ) ; } } } validate ( com . allanbank . mongodb . bson . element . IDENT_18 ) { final com . allanbank . mongodb . bson . Document IDENT_20 = IDENT_21 . METHOD_13 ( METHOD_14 ( com . allanbank . mongodb . IDENT_3 . METHOD_8 . IDENT_22 ) . equals ( id ) ) ; if ( IDENT_20 == null ) { throw new java . io . METHOD_15 ( id . toString ( ) ) ; } return METHOD_16 ( IDENT_20 ) ; }
org . junit . Assert . assertThat ( IDENT_3 . validate ( id ) , org . hamcrest . Matchers . is ( true ) )