}
@Test
public void testReconnectWithTimeoutException() throws Exception
{
DisconnectEvent disconnectEvent;
mockSocket.close();
replay(mockSocket);
disconnectEvent = new DisconnectEvent(this);
// fake successful login
mc.setState(ManagerConnectionState.CONNECTED);
mc.setThrowTimeoutExceptionOnFirstLogin(true);