content: /*
   * This file was automatically generated by UTestGen and EvoSuite
   * Wed Mar 20 20:29:54 GMT 2024
   */
  
  package com.imsmart.servlet;
  
  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 com.imsmart.servlet.HTMLFilter;
  import org.evosuite.runtime.EvoRunner;
  import org.evosuite.runtime.EvoRunnerParameters;
  import org.junit.runner.RunWith;
  
  @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true) 
  public class HTMLFilter_ESTest extends HTMLFilter_ESTest_scaffolding {
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testFilterReturningEmptyString() throws Throwable  {
        // No Comments were added
        String filter = HTMLFilter.filter("");
        assertEquals("", filter);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testFilterReturningNonEmptyString() throws Throwable  {
        // Given
        String input = "This string contains a few special characters like >, <, &, and \".";
        
        // When
        String filteredString = HTMLFilter.filter(input);
        
        // Then
        assertEquals("This string contains a few special characters like &gt;, &lt;, &amp;, and &quot;.", filteredString);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testFilterReturningNull() throws Throwable  {
        // No Comments were added
        String filter = HTMLFilter.filter((String) null);
        assertNull(filter);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testCreatesHTMLFilter() throws Throwable  {
        // No Comments were added
        HTMLFilter hTMLFilter = new HTMLFilter();
    }
  }
  