content: /*
   * This file was automatically generated by UTestGen and EvoSuite
   * Thu Mar 21 11:07:16 GMT 2024
   */
  
  
  import org.junit.jupiter.api.Test;
  import static org.junit.jupiter.api.Assertions.*;
  import org.junit.jupiter.api.Timeout;
  import java.util.concurrent.TimeUnit;
  import static org.evosuite.runtime.EvoAssertions.*;
  import java.awt.HeadlessException;
  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) 
  public class Client_ESTest extends Client_ESTest_scaffolding {
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testFailsToCreateClientThrowsHeadlessException() throws Throwable  {
        Client client = null;
        try {
        client = new Client();
        fail("Expecting exception: HeadlessException");
        } catch(HeadlessException e) {
        /*
        * When a HeadlessException is thrown,
        * Verify that the expected exception message is returned.
        */
        verifyException("java.awt.GraphicsEnvironment", e);}
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testMainThrowsHeadlessException() throws Throwable  {
        // No Comments were added
        // Undeclared exception!
        try { 
          Client.main((String[]) null);
          fail("Expecting exception: HeadlessException");
        
        } catch(HeadlessException e) {
           //
           // no message in exception (getMessage() returned null)
           //
           verifyException("java.awt.GraphicsEnvironment", e);
        }
    }
  }
  