Mockito.any(), Mockito.any(SessionRequestCallback.class));
}
@Test
public void testConnectionRedistributionOnTotalMaxLimit() throws Exception {
IOSession iosession1 = Mockito.mock(IOSession.class);
SessionRequest sessionRequest1 = Mockito.mock(SessionRequest.class);
Mockito.when(sessionRequest1.getAttachment()).thenReturn("somehost");
Mockito.when(sessionRequest1.getSession()).thenReturn(iosession1);
IOSession iosession2 = Mockito.mock(IOSession.class);
SessionRequest sessionRequest2 = Mockito.mock(SessionRequest.class);
Mockito.when(sessionRequest2.getAttachment()).thenReturn("somehost");
Mockito.when(sessionRequest2.getSession()).thenReturn(iosession2);
IOSession iosession3 = Mockito.mock(IOSession.class);
SessionRequest sessionRequest3 = Mockito.mock(SessionRequest.class);
Mockito.when(sessionRequest3.getAttachment()).thenReturn("otherhost");
Mockito.when(sessionRequest3.getSession()).thenReturn(iosession3);
IOSession iosession4 = Mockito.mock(IOSession.class);
SessionRequest sessionRequest4 = Mockito.mock(SessionRequest.class);
Mockito.when(sessionRequest4.getAttachment()).thenReturn("otherhost");
Mockito.when(sessionRequest4.getSession()).thenReturn(iosession4);
ConnectingIOReactor ioreactor = Mockito.mock(ConnectingIOReactor.class);