content: /*
   * This file was automatically generated by UTestGen and EvoSuite
   * Thu Mar 21 08:50:13 GMT 2024
   */
  
  package net.sf.xbus.base.core;
  
  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.util.LinkedList;
  import net.sf.xbus.base.core.MessageHandler;
  import org.evosuite.runtime.EvoRunner;
  import org.evosuite.runtime.EvoRunnerParameters;
  import org.evosuite.runtime.System;
  import org.junit.runner.RunWith;
  
  @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true) 
  public class MessageHandler_ESTest extends MessageHandler_ESTest_scaffolding {
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testGetInstanceThrowsNullPointerException() throws Throwable  {
        // No Comments were added
        // Undeclared exception!
        try { 
          MessageHandler.getInstance((String) null);
          fail("Expecting exception: NullPointerException");
        
        } catch(NullPointerException e) {
           //
           // no message in exception (getMessage() returned null)
           //
        }
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testGetMessageOptional() throws Throwable  {
        // Given a MessageHandler instance
        MessageHandler instance = MessageHandler.getInstance("");
        
        // And an empty LinkedList as argument
        LinkedList<Object> arg1 = new LinkedList<Object>();
        
        // When the getMessageOptional method is called with these inputs
        String messageOptional = instance.getMessageOptional("", arg1);
        
        // Then the result should be null
        assertNull(messageOptional);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testGetMessageThrowsSystemExitException() throws Throwable  {
        // rollbacked to evosuite
        MessageHandler instance = MessageHandler.getInstance("Object");
        LinkedList<Object> arg1 = new LinkedList<Object>();
        // Undeclared exception!
        try { 
          instance.getMessage("Object", arg1);
          fail("Expecting exception: System.SystemExitException");
        
        } catch(System.SystemExitException e) {
           //
           // no message in exception (getMessage() returned null)
           //
           verifyException("org.evosuite.runtime.System", e);
        }
    }
  }
  