METHOD_0 ( ) { final com . allanbank . mongodb . bson . builder . impl . IDENT_0 builder = new com . allanbank . mongodb . bson . builder . impl . METHOD_1 ( ) ; builder . METHOD_2 ( "a" ) ; builder . add ( "b" , 1 ) ; final com . allanbank . mongodb . bson . Document document = builder . build ( ) ; "<AssertPlaceHolder>" ; } toString ( ) { final java . io . StringWriter writer = new java . io . StringWriter ( ) ; final com . allanbank . mongodb . bson . element . IDENT_1 IDENT_2 = new com . allanbank . mongodb . bson . element . METHOD_3 ( writer , false ) ; IDENT_2 . METHOD_4 ( STRING_0 , IDENT_3 ) ; return writer . toString ( ) ; }
org . junit . Assert . assertThat ( builder . toString ( ) , org . hamcrest . Matchers . is ( document . toString ( ) ) )