/*
 * This file was automatically generated by EvoSuite
 * Sun Mar 03 02:20:13 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.UnderComp;
import java.util.Vector;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;

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

  @Test(timeout = 4000)
  public void test00()  throws Throwable  {
      Contract contract0 = new Contract();
      Contract contract1 = new Contract();
      assertTrue(contract1.equals((Object)contract0));
      
      contract1.m_expiry = "EWU{b_C;J1U4R";
      boolean boolean0 = contract1.equals(contract0);
      assertFalse(contract1.equals((Object)contract0));
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test01()  throws Throwable  {
      Contract contract0 = new Contract();
      Object object0 = contract0.clone();
      assertEquals(0.0, contract0.m_strike, 0.01);
      
      contract0.m_strike = (-293.49485);
      boolean boolean0 = contract0.equals(object0);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test02()  throws Throwable  {
      Contract contract0 = new Contract();
      Vector<String> vector0 = new Vector<String>();
      Contract contract1 = new Contract(0, (String) null, (String) null, "BOND", 0.0, "", (String) null, (String) null, "M~o=23ZNrM{1[Gkh^U", (String) null, vector0, (String) null, false, "", (String) null);
      contract0.equals(contract1);
      assertEquals(0, contract1.m_conId);
      assertEquals(0, contract0.m_conId);
      assertFalse(contract1.m_includeExpired);
  }

  @Test(timeout = 4000)
  public void test03()  throws Throwable  {
      Contract contract0 = new Contract();
      contract0.m_currency = "";
      Contract contract1 = (Contract)contract0.clone();
      boolean boolean0 = contract0.equals(contract1);
      assertEquals(0.0, contract1.m_strike, 0.01);
      assertTrue(boolean0);
  }

  @Test(timeout = 4000)
  public void test04()  throws Throwable  {
      Contract contract0 = new Contract();
      contract0.m_primaryExch = "VI{3-00iM";
      Contract contract1 = new Contract();
      boolean boolean0 = contract0.equals(contract1);
      assertEquals(0.0, contract1.m_strike, 0.01);
      assertFalse(contract1.m_includeExpired);
      assertFalse(boolean0);
      assertFalse(contract1.equals((Object)contract0));
      assertEquals(0, contract1.m_conId);
  }

  @Test(timeout = 4000)
  public void test05()  throws Throwable  {
      Contract contract0 = new Contract();
      contract0.m_exchange = "i36j1|Gxs;,0pro9";
      Contract contract1 = new Contract();
      boolean boolean0 = contract0.equals(contract1);
      assertFalse(contract1.equals((Object)contract0));
      assertEquals(0, contract1.m_conId);
      assertFalse(boolean0);
      assertFalse(contract1.m_includeExpired);
      assertEquals(0.0, contract1.m_strike, 0.01);
  }

  @Test(timeout = 4000)
  public void test06()  throws Throwable  {
      Contract contract0 = new Contract();
      Object object0 = contract0.clone();
      assertTrue(object0.equals((Object)contract0));
      
      contract0.m_symbol = ",q6aq^";
      boolean boolean0 = contract0.equals(object0);
      assertFalse(object0.equals((Object)contract0));
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test07()  throws Throwable  {
      Contract contract0 = new Contract();
      Contract contract1 = new Contract(0, "&", "VE(", (String) null, 0, "", (String) null, (String) null, "i[2", "com.ib.client.UnderComp", contract0.m_comboLegs, "com.ib.client.UnderComp", true, (String) null, "h");
      contract0.equals(contract1);
      assertEquals(0.0, contract1.m_strike, 0.01);
      assertTrue(contract1.m_includeExpired);
      assertEquals(0, contract1.m_conId);
  }

  @Test(timeout = 4000)
  public void test08()  throws Throwable  {
      Contract contract0 = new Contract();
      Contract contract1 = new Contract();
      assertEquals(0, contract1.m_conId);
      
      contract1.m_conId = 968;
      boolean boolean0 = contract1.equals(contract0);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test09()  throws Throwable  {
      Vector<Object> vector0 = new Vector<Object>();
      vector0.add((Object) null);
      Contract contract0 = new Contract((-1078), "", "", "BOND", (-1078), "BOND", "BOND", "`}G*wG2c", "BOND", "6[^K", vector0, "6[^K", false, "BOND", "qD($n0 0G_pn.(-Xv.7");
      Object object0 = contract0.clone();
      // Undeclared exception!
      try { 
        contract0.equals(object0);
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("com.ib.client.Util", e);
      }
  }

  @Test(timeout = 4000)
  public void test10()  throws Throwable  {
      Contract contract0 = new Contract(0, " @YrO", "@4cwqrw!.4un", " @YrO", (-779.20048772164), "P;su:V]u3T9j8l/#U", " @YrO", " @YrO", " @YrO", "", (Vector) null, "P;su:V]u3T9j8l/#U", true, "@4cwqrw!.4un", "");
      // Undeclared exception!
      try { 
        contract0.clone();
        fail("Expecting exception: NullPointerException");
      
      } catch(NullPointerException e) {
         //
         // no message in exception (getMessage() returned null)
         //
         verifyException("com.ib.client.Contract", e);
      }
  }

  @Test(timeout = 4000)
  public void test11()  throws Throwable  {
      Contract contract0 = new Contract();
      Object object0 = contract0.clone();
      assertTrue(object0.equals((Object)contract0));
      
      UnderComp underComp0 = new UnderComp();
      contract0.m_underComp = underComp0;
      boolean boolean0 = object0.equals(contract0);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test12()  throws Throwable  {
      Contract contract0 = new Contract();
      Object object0 = contract0.clone();
      assertTrue(object0.equals((Object)contract0));
      
      UnderComp underComp0 = new UnderComp();
      contract0.m_underComp = underComp0;
      boolean boolean0 = contract0.equals(object0);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test13()  throws Throwable  {
      Vector<Contract> vector0 = new Vector<Contract>();
      Contract contract0 = new Contract(0, ")AJ?I<Oc^<", "ZYmb", "", 0, "ZYmb", ")AJ?I<Oc^<", "ZYmb", "", "0 qe+%k", vector0, "eyFpUF=yKdj", false, "", "");
      Object object0 = contract0.clone();
      vector0.add(contract0);
      boolean boolean0 = contract0.equals(object0);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test14()  throws Throwable  {
      Contract contract0 = new Contract();
      Object object0 = contract0.clone();
      assertTrue(object0.equals((Object)contract0));
      
      contract0.m_secIdType = "5\"OPgxt/1XC";
      boolean boolean0 = contract0.equals(object0);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test15()  throws Throwable  {
      Contract contract0 = new Contract();
      Contract contract1 = (Contract)contract0.clone();
      assertTrue(contract1.equals((Object)contract0));
      
      contract1.m_localSymbol = "BOND";
      boolean boolean0 = contract0.equals(contract1);
      assertFalse(contract1.equals((Object)contract0));
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test16()  throws Throwable  {
      Contract contract0 = new Contract();
      Contract contract1 = new Contract();
      assertTrue(contract1.equals((Object)contract0));
      
      contract1.m_multiplier = "9,H]hVo5+'NdLA3j&";
      boolean boolean0 = contract0.equals(contract1);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test17()  throws Throwable  {
      Contract contract0 = new Contract();
      assertEquals(0.0, contract0.m_strike, 0.01);
      
      contract0.m_strike = 1666.52799666;
      Contract contract1 = new Contract();
      boolean boolean0 = contract0.equals(contract1);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test18()  throws Throwable  {
      Contract contract0 = new Contract();
      contract0.m_secType = "BOND";
      Contract contract1 = (Contract)contract0.clone();
      boolean boolean0 = contract0.equals(contract1);
      assertEquals(0, contract1.m_conId);
      assertFalse(contract1.m_includeExpired);
      assertTrue(boolean0);
      assertEquals(0.0, contract1.m_strike, 0.01);
  }

  @Test(timeout = 4000)
  public void test19()  throws Throwable  {
      Contract contract0 = new Contract();
      Object object0 = contract0.clone();
      assertTrue(object0.equals((Object)contract0));
      
      contract0.m_currency = "com.ib.client.UnderComp";
      boolean boolean0 = contract0.equals(object0);
      assertFalse(object0.equals((Object)contract0));
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test20()  throws Throwable  {
      Contract contract0 = new Contract();
      Contract contract1 = new Contract((-3143), (String) null, (String) null, "Ik_(A1U.%", 0.0, (String) null, (String) null, (String) null, "14vHufVE.h4U1_", "com.ib.client.UnderComp", contract0.m_comboLegs, "14vHufVE.h4U1_", true, (String) null, "$9|9[-");
      assertEquals((-3143), contract1.m_conId);
      
      contract1.m_conId = 0;
      contract0.equals(contract1);
      assertEquals(0.0, contract0.m_strike, 0.01);
  }

  @Test(timeout = 4000)
  public void test21()  throws Throwable  {
      Contract contract0 = new Contract();
      Contract contract1 = new Contract(0, (String) null, (String) null, "", 1.0, (String) null, "", "com.ib.client.UnderComp", "", (String) null, contract0.m_comboLegs, "", false, "com.ib.client.UnderComp", "com.ib.client.UnderComp");
      contract0.equals(contract1);
      assertEquals(1.0, contract1.m_strike, 0.01);
      assertFalse(contract1.m_includeExpired);
      assertEquals(0, contract1.m_conId);
      assertFalse(contract0.m_includeExpired);
  }

  @Test(timeout = 4000)
  public void test22()  throws Throwable  {
      Vector<Integer> vector0 = new Vector<Integer>();
      Contract contract0 = new Contract(0, "fGw#", "fGw#", "fGw#", 0, "fGw#", "fGw#", "", "fGw#", "", vector0, "fGw#", false, "fGw#", "");
      Contract contract1 = new Contract();
      boolean boolean0 = contract0.equals(contract1);
      assertEquals(0, contract0.m_conId);
      assertEquals(0, contract1.m_conId);
      assertFalse(boolean0);
      assertFalse(contract0.m_includeExpired);
  }

  @Test(timeout = 4000)
  public void test23()  throws Throwable  {
      Contract contract0 = new Contract();
      Contract contract1 = new Contract();
      assertEquals(0, contract1.m_conId);
      
      contract1.m_conId = 968;
      boolean boolean0 = contract0.equals(contract1);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test24()  throws Throwable  {
      Contract contract0 = new Contract();
      boolean boolean0 = contract0.equals("6L!v;_4r.z=R");
      assertFalse(contract0.m_includeExpired);
      assertEquals(0.0, contract0.m_strike, 0.01);
      assertFalse(boolean0);
      assertEquals(0, contract0.m_conId);
  }

  @Test(timeout = 4000)
  public void test25()  throws Throwable  {
      Contract contract0 = new Contract();
      boolean boolean0 = contract0.equals((Object) null);
      assertEquals(0, contract0.m_conId);
      assertFalse(contract0.m_includeExpired);
      assertEquals(0.0, contract0.m_strike, 0.01);
      assertFalse(boolean0);
  }

  @Test(timeout = 4000)
  public void test26()  throws Throwable  {
      Contract contract0 = new Contract();
      boolean boolean0 = contract0.equals(contract0);
      assertFalse(contract0.m_includeExpired);
      assertEquals(0.0, contract0.m_strike, 0.01);
      assertTrue(boolean0);
      assertEquals(0, contract0.m_conId);
  }

  @Test(timeout = 4000)
  public void test27()  throws Throwable  {
      Contract contract0 = new Contract();
      Contract contract1 = new Contract(0, "X_D;$C", (String) null, "PD-", 0.0, (String) null, (String) null, "PD-", "X_D;$C", (String) null, contract0.m_comboLegs, "X_D;$C", false, (String) null, "t^U_$n:C-!zCSsH8,r");
      boolean boolean0 = contract0.equals(contract1);
      assertEquals(0.0, contract0.m_strike, 0.01);
      assertFalse(contract1.m_includeExpired);
      assertFalse(boolean0);
      assertEquals(0.0, contract1.m_strike, 0.01);
  }

  @Test(timeout = 4000)
  public void test28()  throws Throwable  {
      Contract contract0 = new Contract();
      Object object0 = contract0.clone();
      assertTrue(object0.equals((Object)contract0));
      
      contract0.m_secId = "z/U(z[1";
      boolean boolean0 = contract0.equals(object0);
      assertFalse(boolean0);
  }
}
