METHOD_0 ( ) { final com . allanbank . mongodb . client . Message message = new com . allanbank . mongodb . client . message . METHOD_1 ( STRING_0 , com . allanbank . mongodb . client . message . METHOD_1 . IDENT_0 , com . allanbank . mongodb . bson . builder . IDENT_1 . start ( ) . build ( ) ) ; final com . allanbank . mongodb . client . state . IDENT_2 cluster = new com . allanbank . mongodb . client . state . METHOD_2 ( IDENT_3 , IDENT_4 . IDENT_5 ) ; final com . allanbank . mongodb . client . state . IDENT_6 server = cluster . add ( new java . net . METHOD_3 ( STRING_1 , INT_0 ) ) ; final org . easymock . IDENT_7 < java . beans . IDENT_8 > IDENT_9 = new org . easymock . IDENT_7 < java . beans . IDENT_8 > ( ) ; final com . allanbank . mongodb . client . connection . IDENT_10 IDENT_11 = METHOD_4 ( com . allanbank . mongodb . client . connection . IDENT_10 . class ) ; final com . allanbank . mongodb . client . connection . IDENT_10 IDENT_12 = METHOD_4 ( com . allanbank . mongodb . client . connection . IDENT_10 . class ) ; expect ( IDENT_13 . connect ( ) ) . andReturn ( IDENT_11 ) ; IDENT_11 . METHOD_5 ( METHOD_6 ( IDENT_9 ) ) ; METHOD_7 ( ) ; IDENT_11 . METHOD_8 ( message , null ) ; METHOD_7 ( ) ; final com . allanbank . mongodb . client . state . IDENT_14 strategy = new com . allanbank . mongodb . client . state . METHOD_9 ( ) ; strategy . METHOD_10 ( IDENT_3 ) ; strategy . METHOD_11 ( new com . allanbank . mongodb . client . state . METHOD_12 ( ) { @ com . allanbank . mongodb . client . Override public java . util . List < com . allanbank . mongodb . client . state . IDENT_6 > METHOD_13 ( ) { return java . util . Collections . singletonList ( server ) ; } } ) ; strategy . METHOD_14 ( IDENT_13 ) ; strategy . METHOD_15 ( cluster ) ; expect ( IDENT_11 . METHOD_16 ( ) ) . andReturn ( false ) ; expect ( IDENT_13 . METHOD_17 ( ) ) . andReturn ( strategy ) ; expect ( IDENT_11 . METHOD_18 ( ) ) . andReturn ( server ) ; expect ( IDENT_13 . connect ( server , IDENT_3 ) ) . METHOD_19 ( new java . io . IOException ( STRING_2 ) ) ; expect ( IDENT_13 . connect ( server , IDENT_3 ) ) . andReturn ( IDENT_12 ) ; IDENT_12 . METHOD_8 ( eq ( new com . allanbank . mongodb . client . message . METHOD_20 ( ) ) , METHOD_21 ( com . allanbank . mongodb . client . IDENT_15 . IDENT_16 . class ) ) ; METHOD_7 ( ) . METHOD_19 ( new com . allanbank . mongodb . METHOD_22 ( STRING_3 ) ) ; IDENT_12 . close ( ) ; METHOD_7 ( ) ; IDENT_11 . METHOD_23 ( METHOD_21 ( com . allanbank . mongodb . METHOD_22 . class ) ) ; METHOD_7 ( ) ; IDENT_11 . METHOD_24 ( METHOD_21 ( java . beans . IDENT_8 . class ) ) ; METHOD_7 ( ) ; replay ( IDENT_11 , IDENT_12 ) ; IDENT_17 . METHOD_8 ( message , null ) ; IDENT_9 . getValue ( ) . METHOD_25 ( new java . beans . METHOD_26 ( IDENT_11 , com . allanbank . mongodb . client . connection . IDENT_10 . IDENT_18 , Boolean . IDENT_19 , Boolean . IDENT_20 ) ) ; "<AssertPlaceHolder>" ; verify ( IDENT_11 , IDENT_12 ) ; } METHOD_27 ( ) { return IDENT_21 . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , IDENT_17 . METHOD_27 ( ) )