METHOD_0 ( ) { final com . allanbank . mongodb . IDENT_0 config = new com . allanbank . mongodb . METHOD_1 ( ) ; final com . allanbank . mongodb . client . state . IDENT_1 cluster = new com . allanbank . mongodb . client . state . METHOD_2 ( config , com . allanbank . mongodb . client . IDENT_2 . IDENT_3 ) ; final com . allanbank . mongodb . client . state . IDENT_4 server = cluster . add ( STRING_0 ) ; final com . allanbank . mongodb . client . connection . IDENT_5 IDENT_6 = METHOD_3 ( com . allanbank . mongodb . client . connection . IDENT_5 . class ) ; final com . allanbank . mongodb . client . connection . IDENT_5 IDENT_7 = METHOD_3 ( com . allanbank . mongodb . client . connection . IDENT_5 . class ) ; final com . allanbank . mongodb . client . connection . proxy . IDENT_8 IDENT_9 = METHOD_3 ( com . allanbank . mongodb . client . connection . proxy . IDENT_8 . class ) ; final com . allanbank . mongodb . client . state . IDENT_10 IDENT_11 = METHOD_3 ( com . allanbank . mongodb . client . state . IDENT_10 . class ) ; expect ( IDENT_6 . METHOD_4 ( ) ) . andReturn ( server ) ; expect ( IDENT_9 . connect ( server , config ) ) . METHOD_5 ( new java . io . IOException ( STRING_1 ) ) ; expect ( IDENT_11 . METHOD_6 ( ) ) . andReturn ( new java . util . ArrayList < com . allanbank . mongodb . client . state . IDENT_4 > ( ) ) ; replay ( IDENT_6 , IDENT_7 , IDENT_9 , IDENT_11 ) ; final com . allanbank . mongodb . client . state . IDENT_12 strategy = new com . allanbank . mongodb . client . state . METHOD_7 ( ) ; strategy . METHOD_8 ( IDENT_9 ) ; strategy . METHOD_9 ( config ) ; strategy . METHOD_10 ( IDENT_11 ) ; strategy . METHOD_11 ( cluster ) ; "<AssertPlaceHolder>" ; verify ( IDENT_6 , IDENT_7 , IDENT_9 , IDENT_11 ) ; } METHOD_12 ( com . allanbank . mongodb . client . connection . IDENT_5 ) { final boolean IDENT_13 = java . lang . Thread . METHOD_13 ( ) ; try { final com . allanbank . mongodb . client . state . IDENT_4 IDENT_14 = IDENT_15 . METHOD_4 ( ) ; com . allanbank . mongodb . client . connection . IDENT_5 IDENT_16 = METHOD_14 ( IDENT_14 ) ; if ( IDENT_16 != null ) { return IDENT_16 ; } final java . util . List < com . allanbank . mongodb . client . state . IDENT_4 > IDENT_17 = METHOD_15 ( ) . METHOD_6 ( ) ; for ( final com . allanbank . mongodb . client . state . IDENT_4 server : IDENT_17 ) { IDENT_16 = METHOD_14 ( server ) ; if ( IDENT_16 != null ) { return IDENT_16 ; } } com . allanbank . mongodb . client . state . METHOD_7 . LOG . info ( STRING_2 , IDENT_17 . size ( ) , IDENT_17 ) ; } finally { if ( IDENT_13 ) { java . lang . Thread . METHOD_16 ( ) . METHOD_17 ( ) ; } } return null ; }
org . junit . Assert . assertNull ( strategy . METHOD_12 ( IDENT_6 ) )