METHOD_0 ( ) { final java . util . List < com . allanbank . mongodb . bson . Document > IDENT_0 = java . util . Collections . singletonList ( com . allanbank . mongodb . bson . builder . IDENT_1 . start ( ) . METHOD_1 ( STRING_0 , 1 ) . METHOD_1 ( STRING_1 , INT_0 ) . build ( ) ) ; final com . allanbank . mongodb . client . message . IDENT_2 IDENT_3 = new com . allanbank . mongodb . client . message . METHOD_2 ( 0 , 0 , 0 , IDENT_0 , false , false , false , true ) ; final com . allanbank . mongodb . IDENT_4 < java . lang . Integer > IDENT_5 = METHOD_3 ( com . allanbank . mongodb . IDENT_4 . class ) ; replay ( IDENT_5 ) ; final com . allanbank . mongodb . client . IDENT_6 . IDENT_7 IDENT_6 = new com . allanbank . mongodb . client . IDENT_6 . METHOD_4 ( STRING_1 , IDENT_5 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_5 ) ; } valueOf ( java . lang . String ) { com . allanbank . mongodb . IDENT_8 result = null ; if ( ( STRING_2 . equalsIgnoreCase ( value ) ) || ( STRING_3 . equalsIgnoreCase ( value ) ) ) { result = com . allanbank . mongodb . IDENT_8 . IDENT_9 ; } else if ( STRING_4 . equalsIgnoreCase ( value ) ) { result = com . allanbank . mongodb . IDENT_8 . IDENT_10 ; } else { try { boolean IDENT_11 = false ; boolean IDENT_12 = false ; boolean IDENT_13 = false ; int IDENT_14 = 0 ; java . lang . String IDENT_15 = null ; int IDENT_16 = 0 ; final com . allanbank . mongodb . bson . Document d = com . allanbank . mongodb . bson . json . IDENT_17 . parse ( value ) ; for ( final com . allanbank . mongodb . bson . Element e : d ) { if ( ! ( STRING_5 . equalsIgnoreCase ( e . getName ( ) ) ) ) { if ( STRING_6 . equalsIgnoreCase ( e . getName ( ) ) ) { IDENT_11 = true ; if ( e instanceof com . allanbank . mongodb . bson . IDENT_18 ) { IDENT_14 = ( ( com . allanbank . mongodb . bson . IDENT_18 ) ( e ) ) . METHOD_5 ( ) ; } else if ( e instanceof com . allanbank . mongodb . bson . element . IDENT_19 ) { IDENT_15 = ( ( com . allanbank . mongodb . bson . element . IDENT_19 ) ( e ) ) . getValue ( ) ; } else if ( e instanceof com . allanbank . mongodb . bson . element . IDENT_20 ) { IDENT_15 = ( ( com . allanbank . mongodb . bson . element . IDENT_20 ) ( e ) ) . METHOD_6 ( ) ; } else { return null ; } } else if ( STRING_7 . equalsIgnoreCase ( e . getName ( ) ) ) { if ( e instanceof com . allanbank . mongodb . bson . IDENT_18 ) { IDENT_16 = ( ( com . allanbank . mongodb . bson . IDENT_18 ) ( e ) ) . METHOD_5 ( ) ; } else { return null ; } } else if ( STRING_8 . equalsIgnoreCase ( e . getName ( ) ) ) { IDENT_11 = true ; IDENT_12 = true ; } else if ( STRING_9 . equalsIgnoreCase ( e . getName ( ) ) ) { IDENT_11 = true ; IDENT_13 = true ; } else { return null ; } } } result = new com . allanbank . mongodb . METHOD_7 ( IDENT_11 , IDENT_12 , IDENT_13 , IDENT_14 , IDENT_15 , IDENT_16 ) ; } catch ( final com . allanbank . mongodb . error . IDENT_21 error ) { error . METHOD_8 ( ) ; } } return result ; }
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( INT_0 ) , IDENT_6 . convert ( IDENT_3 ) )