content: /*
   * This file was automatically generated by UTestGen and EvoSuite
   * Mon Mar 18 09:58:26 GMT 2024
   */
  
  package com.puppycrawl.tools.checkstyle.api;
  
  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 com.puppycrawl.tools.checkstyle.DefaultConfiguration;
  import com.puppycrawl.tools.checkstyle.DefaultContext;
  import com.puppycrawl.tools.checkstyle.api.AutomaticBean;
  import com.puppycrawl.tools.checkstyle.api.Configuration;
  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 AutomaticBean_Original_ESTest extends AutomaticBean_Original_ESTest_scaffolding {
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testConfigureThrowsException0() throws Throwable  {
        AutomaticBean automaticBean = new AutomaticBean();
        DefaultConfiguration arg0 = new DefaultConfiguration("iterators");
        arg0.addAttribute("com.puppycrawl.tools.checkstyle.api.AutomaticBean$RelaxedStringArrayConverter", "");
        try { 
          automaticBean.configure(arg0);
          fail("Expecting exception: Exception");
        
        } catch(Exception e) {
           //
           // Cannot set property 'com.puppycrawl.tools.checkstyle.api.AutomaticBean$RelaxedStringArrayConverter' to '' in module iterators
           //
           verifyException("com.puppycrawl.tools.checkstyle.api.AutomaticBean", e);
        }
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testSetupChild() throws Throwable  {
        AutomaticBean automaticBean = new AutomaticBean();
        automaticBean.setupChild((Configuration) null);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testConfigureThrowsException1() throws Throwable  {
        AutomaticBean automaticBean = new AutomaticBean();
        DefaultConfiguration arg0 = new DefaultConfiguration("Im%qY|]4l\"uw%@");
        arg0.addAttribute("class", "");
        try { 
          automaticBean.configure(arg0);
          fail("Expecting exception: Exception");
        
        } catch(Exception e) {
           //
           // illegal value '' for property 'class' of module Im%qY|]4l\"uw%@
           //
           verifyException("com.puppycrawl.tools.checkstyle.api.AutomaticBean", e);
        }
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testContextualize() throws Throwable  {
        AutomaticBean arg1 = new AutomaticBean();
        DefaultContext arg0 = new DefaultContext();
        arg0.add("", arg1);
        arg1.contextualize(arg0);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testConfigureThrowsException2() throws Throwable  {
        AutomaticBean automaticBean = new AutomaticBean();
        DefaultConfiguration arg0 = new DefaultConfiguration("hy");
        arg0.addChild(arg0);
        try { 
          automaticBean.configure(arg0);
          fail("Expecting exception: Exception");
        
        } catch(Exception e) {
           //
           // hy is not allowed as a child in hy
           //
           verifyException("com.puppycrawl.tools.checkstyle.api.AutomaticBean", e);
        }
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testConfigure() throws Throwable  {
        AutomaticBean automaticBean = new AutomaticBean();
        DefaultConfiguration arg0 = new DefaultConfiguration("hy");
        automaticBean.configure(arg0);
        Configuration configuration = automaticBean.getConfiguration();
        assertSame(configuration, arg0);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testFinishLocalSetup() throws Throwable  {
        AutomaticBean automaticBean = new AutomaticBean();
        automaticBean.finishLocalSetup();
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testGetConfigurationReturningNull() throws Throwable  {
        AutomaticBean automaticBean = new AutomaticBean();
        Configuration configuration = automaticBean.getConfiguration();
        assertNull(configuration);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testConfigureThrowsException3() throws Throwable  {
        AutomaticBean automaticBean = new AutomaticBean();
        DefaultConfiguration arg0 = new DefaultConfiguration("");
        arg0.addAttribute("", "");
        try { 
          automaticBean.configure(arg0);
          fail("Expecting exception: Exception");
        
        } catch(Exception e) {
           //
           // Property '' in module  does not exist, please check the documentation
           //
           verifyException("com.puppycrawl.tools.checkstyle.api.AutomaticBean", e);
        }
    }
  }
  