content: /*
   * This file was automatically generated by UTestGen and EvoSuite
   * Mon Mar 18 04:10:30 GMT 2024
   */
  
  package ch.bfh.egov.nutzenportfolio.common;
  
  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.shaded.org.mockito.Mockito.*;
  import static org.evosuite.runtime.EvoAssertions.*;
  import ch.bfh.egov.nutzenportfolio.common.AuswertungGrafik;
  import javax.servlet.ServletOutputStream;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  import javax.servlet.http.HttpSession;
  import org.evosuite.runtime.EvoRunner;
  import org.evosuite.runtime.EvoRunnerParameters;
  import org.evosuite.runtime.ViolatedAssumptionAnswer;
  import org.junit.runner.RunWith;
  
  @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true) 
  public class AuswertungGrafik_Original_ESTest extends AuswertungGrafik_Original_ESTest_scaffolding {
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testDoGetThrowsClassCastException() throws Throwable  {
        AuswertungGrafik auswertungGrafik = new AuswertungGrafik();
        Object object = new Object();
        HttpSession httpSession = mock(HttpSession.class, new ViolatedAssumptionAnswer());
        doReturn(object).when(httpSession).getAttribute(anyString());
        HttpServletRequest arg0 = mock(HttpServletRequest.class, new ViolatedAssumptionAnswer());
        doReturn(httpSession).when(arg0).getSession();
        HttpServletResponse arg1 = mock(HttpServletResponse.class, new ViolatedAssumptionAnswer());
        doReturn((ServletOutputStream) null).when(arg1).getOutputStream();
        // Undeclared exception!
        try { 
          auswertungGrafik.doGet(arg0, arg1);
          fail("Expecting exception: ClassCastException");
        
        } catch(ClassCastException e) {
           //
           // java.lang.Object cannot be cast to java.util.List
           //
           verifyException("ch.bfh.egov.nutzenportfolio.common.AuswertungGrafik", e);
        }
    }
  }
  