/*
 * This file was automatically generated by EvoSuite
 * Thu Sep 20 13:49:03 GMT 2018
 */

package org.gmod.schema.sequence;

import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.evosuite.runtime.ViolatedAssumptionAnswer;
import org.gmod.schema.cv.CvTerm;
import org.gmod.schema.sequence.Synonym;
import org.junit.runner.RunWith;

@RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, useJEE = true) 
public class Synonym_ESTest extends Synonym_ESTest_scaffolding {

  @Test(timeout = 4000)
  public void test0()  throws Throwable  {
      Synonym synonym0 = new Synonym();
      synonym0.setSynonymId(961);
      int int0 = synonym0.getSynonymId();
      assertEquals(961, int0);
  }

  @Test(timeout = 4000)
  public void test1()  throws Throwable  {
      Synonym synonym0 = new Synonym();
      synonym0.setSynonymId((-1261));
      int int0 = synonym0.getSynonymId();
      assertEquals((-1261), int0);
  }

  @Test(timeout = 4000)
  public void test2()  throws Throwable  {
      Synonym synonym0 = new Synonym();
      String string0 = synonym0.getName();
      assertNull(string0);
  }

  @Test(timeout = 4000)
  public void test3()  throws Throwable  {
      Synonym synonym0 = new Synonym();
      synonym0.setName("");
      String string0 = synonym0.getName();
      assertEquals("", string0);
  }

  @Test(timeout = 4000)
  public void test4()  throws Throwable  {
      Synonym synonym0 = new Synonym();
      synonym0.setSynonymSgml("6");
      assertEquals(0, synonym0.getSynonymId());
  }

  @Test(timeout = 4000)
  public void test5()  throws Throwable  {
      Synonym synonym0 = new Synonym();
      CvTerm cvTerm0 = synonym0.getCvTerm();
      assertNull(cvTerm0);
  }

  @Test(timeout = 4000)
  public void test6()  throws Throwable  {
      CvTerm cvTerm0 = mock(CvTerm.class, new ViolatedAssumptionAnswer());
      Synonym synonym0 = new Synonym(cvTerm0, "q.774\"|7_FKhpRx~", "q.774\"|7_FKhpRx~");
      synonym0.setCvTerm((CvTerm) null);
      assertEquals(0, synonym0.getSynonymId());
  }

  @Test(timeout = 4000)
  public void test7()  throws Throwable  {
      Synonym synonym0 = new Synonym();
      int int0 = synonym0.getSynonymId();
      assertEquals(0, int0);
  }

  @Test(timeout = 4000)
  public void test8()  throws Throwable  {
      CvTerm cvTerm0 = mock(CvTerm.class, new ViolatedAssumptionAnswer());
      Synonym synonym0 = new Synonym(cvTerm0, "q.774\"|7_FKhpRx~", "q.774\"|7_FKhpRx~");
      String string0 = synonym0.getName();
      assertEquals("q.774\"|7_FKhpRx~", string0);
  }
}
