content: /*
   * This file was automatically generated by EvoSuite
   */
  
  package com.lts.exception;
  
  import org.junit.Test;
  import org.junit.runner.RunWith;
  import org.evosuite.junit.EvoSuiteRunner;
  import static org.junit.Assert.*;
  import com.lts.exception.DefaultExceptionHandlerFactory;
  import com.lts.exception.ExceptionHandler;
  import com.lts.exception.ExceptionHandlerFactory;
  import org.junit.BeforeClass;
  
  @RunWith(EvoSuiteRunner.class)
  public class ExceptionHandlerEvoSuiteTest {
  
    @BeforeClass 
    public static void initEvoSuiteFramework(){ 
      org.evosuite.Properties.REPLACE_CALLS = true; 
    } 
  
  
    @Test
    public void test0()  throws Throwable  {
        // Undeclared exception!
        try {
          ExceptionHandler.processException((Exception) null);
          fail("Expecting exception: NullPointerException");
        } catch(NullPointerException e) {
        }
    }
  
    @Test
    public void test1()  throws Throwable  {
        ExceptionHandler.getHandler();
        DefaultExceptionHandlerFactory defaultExceptionHandlerFactory0 = (DefaultExceptionHandlerFactory)ExceptionHandler.getFactory();
        ExceptionHandler.setFactory((ExceptionHandlerFactory) defaultExceptionHandlerFactory0);
    }
  
    @Test
    public void test2()  throws Throwable  {
        ExceptionHandler.initializeFactory();
    }
  
    @Test
    public void test3()  throws Throwable  {
        DefaultExceptionHandlerFactory defaultExceptionHandlerFactory0 = (DefaultExceptionHandlerFactory)ExceptionHandler.getFactory();
        ExceptionHandler.setFactory((ExceptionHandlerFactory) defaultExceptionHandlerFactory0);
        ExceptionHandler.setFactory((ExceptionHandlerFactory) defaultExceptionHandlerFactory0);
        DefaultExceptionHandlerFactory defaultExceptionHandlerFactory1 = new DefaultExceptionHandlerFactory();
        defaultExceptionHandlerFactory1.getExceptionHandler();
        DefaultExceptionHandlerFactory defaultExceptionHandlerFactory2 = (DefaultExceptionHandlerFactory)ExceptionHandler.getFactory();
        assertFalse(defaultExceptionHandlerFactory2.equals(defaultExceptionHandlerFactory1));
    }
  }
  