content: /*
   * This file was automatically generated by UTestGen and EvoSuite
   * Thu Mar 21 03:58:49 GMT 2024
   */
  
  package visu.handball.moves.actions;
  
  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;
  import visu.handball.moves.actions.CreateMovePdfAction;
  import visu.handball.moves.model.HandballModel;
  
  @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true) 
  public class CreateMovePdfAction_ESTest extends CreateMovePdfAction_ESTest_scaffolding {
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testDoExportThrowsHeadlessException() throws Throwable  {
        HandballModel model = new HandballModel();
        CreateMovePdfAction action = new CreateMovePdfAction(model);
        
        // Given a HandballModel and a CreateMovePdfAction instance
        // When the doExport method is called without a display environment (headless mode)
        
        try {
        // Then an exception should be thrown with the message "HeadlessException"
        action.doExport();
        fail("Expecting exception: HeadlessException");
        } catch(HeadlessException e) {
        verifyException("java.awt.GraphicsEnvironment", e);}
    }
  }
  