content: /*
   * This file was automatically generated by UTestGen and EvoSuite
   * Thu Mar 21 04:04:30 GMT 2024
   */
  
  package visu.handball.moves.xml;
  
  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 java.io.File;
  import java.io.InputStream;
  import java.io.PipedInputStream;
  import org.evosuite.runtime.EvoRunner;
  import org.evosuite.runtime.EvoRunnerParameters;
  import org.evosuite.runtime.mock.java.io.MockFile;
  import org.junit.runner.RunWith;
  import visu.handball.moves.xml.HandballModelReader;
  
  @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true) 
  public class HandballModelReader_Original_ESTest extends HandballModelReader_Original_ESTest_scaffolding {
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testGetInputFileReturningFileWhereIsAbsoluteIsTrue() throws Throwable  {
        MockFile arg2 = new MockFile("");
        File arg0 = MockFile.createTempFile("|k:f}R!=JARoJY$TZO", "|k:f}R!=JARoJY$TZO", (File) arg2);
        HandballModelReader instance = HandballModelReader.getInstance(arg0);
        File inputFile = instance.getInputFile();
        assertFalse(inputFile.equals((Object)arg2));
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testGetInputFileReturningFileWhereIsDirectoryIsTrue() throws Throwable  {
        MockFile arg0 = new MockFile((File) null, "");
        HandballModelReader instance = HandballModelReader.getInstance((File) arg0);
        File inputFile = instance.getInputFile();
        assertNull(inputFile.getParent());
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testGetInputFileReturningFileWhereLastModifiedIsZero() throws Throwable  {
        MockFile arg0 = new MockFile("move");
        HandballModelReader instance = HandballModelReader.getInstance((File) arg0);
        File inputFile = instance.getInputFile();
        assertSame(inputFile, arg0);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testSetInputFile() throws Throwable  {
        MockFile arg0 = new MockFile("PRH=FN;mnKoHs2jcxh");
        HandballModelReader instance = HandballModelReader.getInstance((File) arg0);
        instance.setInputFile(arg0);
        assertFalse(arg0.canRead());
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testSetInputStream() throws Throwable  {
        MockFile arg0 = new MockFile("PRH=FN;mnKoHs2jcxh");
        HandballModelReader instance = HandballModelReader.getInstance((File) arg0);
        instance.setInputStream((InputStream) null);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testReadFromXmlThrowsHeadlessException() throws Throwable  {
        PipedInputStream arg0 = new PipedInputStream();
        HandballModelReader instance = HandballModelReader.getInstance((InputStream) arg0);
        // Undeclared exception!
        try { 
          instance.readFromXml();
          fail("Expecting exception: HeadlessException");
        
        } catch(HeadlessException e) {
           //
           // no message in exception (getMessage() returned null)
           //
           verifyException("java.awt.GraphicsEnvironment", e);
        }
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testGetInputFileReturningNull() throws Throwable  {
        HandballModelReader instance = HandballModelReader.getInstance((InputStream) null);
        File inputFile = instance.getInputFile();
        assertNull(inputFile);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testGetInputStream() throws Throwable  {
        MockFile arg0 = new MockFile("PRH=FN;mnKoHs2jcxh");
        HandballModelReader instance = HandballModelReader.getInstance((File) arg0);
        InputStream inputStream = instance.getInputStream();
        assertNull(inputStream);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testGetInstanceTakingInputStreamWithNull() throws Throwable  {
        HandballModelReader instance = HandballModelReader.getInstance((InputStream) null);
        // Undeclared exception!
        try { 
          instance.readFromXml();
          fail("Expecting exception: HeadlessException");
        
        } catch(HeadlessException e) {
           //
           // no message in exception (getMessage() returned null)
           //
           verifyException("java.awt.GraphicsEnvironment", e);
        }
    }
  }
  