/*
 * This file was automatically generated by EvoSuite
 * Sun Mar 03 02:25:25 GMT 2024
 */

package com.ib.client;

import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import com.ib.client.Contract;
import com.ib.client.EClientErrors;
import com.ib.client.EClientSocket;
import com.ib.client.EException;
import com.ib.client.ExecutionFilter;
import com.ib.client.Order;
import com.ib.client.ScannerSubscription;
import com.ib.client.TagValue;
import java.io.IOException;
import java.net.Proxy;
import java.net.Socket;
import java.net.SocketException;
import java.util.Vector;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.evosuite.runtime.mock.java.net.MockSocket;
import org.junit.runner.RunWith;

@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true, useJEE = true) 
public class EClientSocket_ESTest extends EClientSocket_ESTest_scaffolding {

  @Test(timeout = 4000)
  public void test00()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      EClientErrors.CodeMsgPair eClientErrors_CodeMsgPair0 = new EClientErrors.CodeMsgPair(0, "Cancel Scanner Subscription Sending Error - ");
      EException eException0 = eClientSocket0.createEException((-476), eClientErrors_CodeMsgPair0);
      assertEquals((-476), eException0.getId());
  }

  @Test(timeout = 4000)
  public void test01()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      EClientErrors.CodeMsgPair eClientErrors_CodeMsgPair0 = new EClientErrors.CodeMsgPair((-352), (String) null);
      EException eException0 = eClientSocket0.createEException(864, eClientErrors_CodeMsgPair0);
      assertEquals(864, eException0.getId());
  }

  @Test(timeout = 4000)
  public void test02()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      // Undeclared exception!
      try { 
        eClientSocket0.send((-895));
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test03()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.error(520, 961, "");
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         //  [id = 520, errorCode = 961]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test04()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      // Undeclared exception!
      try { 
        eClientSocket0.eConnect("", (-879), (-879));
        fail("Expecting exception: IllegalArgumentException");
      
      } catch(IllegalArgumentException e) {
         //
         // port out of range:-879
         //
         verifyException("java.net.InetSocketAddress", e);
      }
  }

  @Test(timeout = 4000)
  public void test05()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.createSocket("iKbmuN)hr\"t#%P~o", 0);
        fail("Expecting exception: IOException");
      
      } catch(IOException e) {
         //
         // Remote address/port is not opened: org.evosuite.runtime.vnet.EndPointInfo@75efca87
         //
         verifyException("org.evosuite.runtime.vnet.VirtualNetwork", e);
      }
  }

  @Test(timeout = 4000)
  public void test06()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      // Undeclared exception!
      try { 
        eClientSocket0.createEException(4659, (EClientErrors.CodeMsgPair) null);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("com.ib.client.EException", e);
      }
  }

  @Test(timeout = 4000)
  public void test07()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      // Undeclared exception!
      try { 
        eClientSocket0.createDataOutputStream((Socket) null);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test08()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      // Undeclared exception!
      try { 
        eClientSocket0.createDataInputStream((Socket) null);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test09()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      boolean boolean0 = eClientSocket0.isConnected();
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test10()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.dataInputStream();
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test11()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      // Undeclared exception!
      try { 
        eClientSocket0.send(true);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test12()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.cancelFundamentalData(528);
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test13()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      Contract contract0 = new Contract();
      try { 
        eClientSocket0.reqFundamentalData(662, contract0, (String) null);
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test14()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.reqCurrentTime();
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test15()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.replaceFA(0, "");
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test16()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.requestFA(2448);
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test17()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.reqManagedAccts();
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test18()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.reqAllOpenOrders();
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test19()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.reqAutoOpenOrders(true);
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test20()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.cancelNewsBulletins();
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test21()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.reqNewsBulletins(true);
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test22()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.reqIds(0);
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test23()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.reqOpenOrders();
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test24()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.cancelOrder(0);
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test25()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.reqExecutions(532, (ExecutionFilter) null);
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test26()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.reqAccountUpdates(false, "CmbJ] U0vnC;y/H0{");
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test27()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      Contract contract0 = new Contract();
      Order order0 = new Order();
      try { 
        eClientSocket0.placeOrder(0, contract0, order0);
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test28()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      Contract contract0 = new Contract();
      try { 
        eClientSocket0.exerciseOptions(39, contract0, (-3984), (-788), (String) null, 39);
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test29()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.cancelMktDepth((-57));
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test30()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.cancelMktData(0);
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test31()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      Vector<String> vector0 = new Vector<String>();
      Contract contract0 = new Contract(0, "MKT", "", "", 0, "", "Cancel Fundamental Data Sending Error - ", "", "", "|2U2V2HD [Q", vector0, "Request Real-time Bar Data Sending Error - ", false, "", "vn(b`#<m#a,j*F");
      try { 
        eClientSocket0.reqMktDepth(1274, contract0, (-438));
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test32()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      Contract contract0 = new Contract();
      try { 
        eClientSocket0.reqContractDetails(0, contract0);
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test33()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      Vector<TagValue> vector0 = new Vector<TagValue>();
      Contract contract0 = new Contract((-1300), "O", "O", "l90i", (-1300), "MZZH<K~{", "l90i", "  It does not support realtime bar data query cancellation.", "O", "MZZH<K~{", vector0, "  It does not support realtime bar data query cancellation.", true, "O", "MZZH<K~{");
      try { 
        eClientSocket0.reqRealTimeBars(0, contract0, 0, "OG?5Hv%Y", true);
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test34()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.reqHistoricalData((-2298), (Contract) null, (String) null, "!b_?<BD4t", (String) null, "!b_?<BD4t", 0, 0);
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test35()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.cancelRealTimeBars(0);
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test36()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.cancelHistoricalData((-2211));
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test37()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      Contract contract0 = new Contract();
      try { 
        eClientSocket0.reqMktData(374, contract0, (String) null, false);
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test38()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      ScannerSubscription scannerSubscription0 = new ScannerSubscription();
      try { 
        eClientSocket0.reqScannerSubscription(2483, scannerSubscription0);
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test39()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.reqScannerParameters();
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test40()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      eClientSocket0.eDisconnect();
      assertFalse(eClientSocket0.isConnected());
  }

  @Test(timeout = 4000)
  public void test41()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.eConnect("cH*^&cOjG", 0, 0);
        fail("Expecting exception: IOException");
      
      } catch(IOException e) {
         //
         // Remote address/port is not opened: org.evosuite.runtime.vnet.EndPointInfo@75efca87
         //
         verifyException("org.evosuite.runtime.vnet.VirtualNetwork", e);
      }
  }

  @Test(timeout = 4000)
  public void test42()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.TwsConnectionTime();
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test43()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.serverVersion();
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test44()  throws Throwable  {
      String string0 = EClientSocket.faMsgTypeName((-3984));
      assertNull(string0);
  }

  @Test(timeout = 4000)
  public void test45()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      // Undeclared exception!
      try { 
        eClientSocket0.setServerLogLevel((-1689));
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test46()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      // Undeclared exception!
      try { 
        eClientSocket0.send("");
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test47()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.error("GROUPS");
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // GROUPS [id = -1, errorCode = -1]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test48()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      // Undeclared exception!
      try { 
        eClientSocket0.send(1225L);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test49()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      // Undeclared exception!
      try { 
        eClientSocket0.send(0.0);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test50()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      // Undeclared exception!
      try { 
        eClientSocket0.send(',');
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test51()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      // Undeclared exception!
      try { 
        eClientSocket0.send(false);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test52()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      try { 
        eClientSocket0.cancelScannerSubscription(46);
        fail("Expecting exception: Exception");
      
      } catch(Exception e) {
         //
         // Not connected [id = -1, errorCode = 504]
         //
         verifyException("com.ib.client.EClientSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test53()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      MockSocket mockSocket0 = new MockSocket();
      try { 
        eClientSocket0.createDataOutputStream(mockSocket0);
        fail("Expecting exception: SocketException");
      
      } catch(SocketException e) {
         //
         // Socket is not connected
         //
         verifyException("org.evosuite.runtime.mock.java.net.MockSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test54()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      EClientErrors.CodeMsgPair eClientErrors_CodeMsgPair0 = new EClientErrors.CodeMsgPair(3, "z~`VdY");
      EException eException0 = eClientSocket0.createEException(25, eClientErrors_CodeMsgPair0);
      assertEquals(25, eException0.getId());
  }

  @Test(timeout = 4000)
  public void test55()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      Proxy proxy0 = Proxy.NO_PROXY;
      MockSocket mockSocket0 = new MockSocket(proxy0);
      try { 
        eClientSocket0.createDataInputStream(mockSocket0);
        fail("Expecting exception: SocketException");
      
      } catch(SocketException e) {
         //
         // Socket is not connected
         //
         verifyException("org.evosuite.runtime.mock.java.net.MockSocket", e);
      }
  }

  @Test(timeout = 4000)
  public void test56()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      // Undeclared exception!
      try { 
        eClientSocket0.createSocket("_c:", (-1662));
        fail("Expecting exception: IllegalArgumentException");
      
      } catch(IllegalArgumentException e) {
         //
         // port out of range:-1662
         //
         verifyException("java.net.InetSocketAddress", e);
      }
  }

  @Test(timeout = 4000)
  public void test57()  throws Throwable  {
      EClientSocket eClientSocket0 = new EClientSocket();
      eClientSocket0.close();
      assertEquals(2, EClientSocket.PROFILES);
  }
}
