content: /*
   * This file was automatically generated by UTestGen and EvoSuite
   * Tue Mar 19 16:03:02 GMT 2024
   */
  
  package com.google.common.base;
  
  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.google.common.base.Objects;
  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 Objects_ESTest extends Objects_ESTest_scaffolding {
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testEqualReturningTrue() throws Throwable  {
        // Given two integers with the same value, -1304
        Integer arg1 = new Integer((-1304));
        Integer arg0 = new Integer((-1304));
        
        // When we compare them using Objects.equal
        boolean equal = Objects.equal(arg0, arg1);
        
        // Then we expect the result to be true
        assertTrue(equal);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testEqualWithNull() throws Throwable  {
        // Given: a null argument and an object
        Object arg1 = new Object();
        
        // When: the objects are compared using Objects.equal()
        boolean equal = Objects.equal((Object) null, arg1);
        
        // Then: the result is false
        assertFalse(equal);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testEqualReturningFalse() throws Throwable  {
        // rollbacked to evosuite
        Object arg1 = new Object();
        boolean equal = Objects.equal("hello", arg1);
        assertFalse(equal);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testEqual() throws Throwable  {
        // Given: two integers with the same value (-1304)
        Integer arg1 = new Integer((-1304));
        Integer arg2 = new Integer((-1304));
        
        // When: we compare these two integers for equality using Objects.equal() method
        boolean equal = Objects.equal(arg1, arg2);
        
        // Then: the result should be true as both integers have the same value (-1304)
        assertTrue(equal);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testFirstNonNull() throws Throwable  {
        // Given
        Object arg1 = new Object();
        Object arg2 = new Object();
        
        // When
        Object firstNonNull = Objects.firstNonNull(arg1, arg2);
        
        // Then
        assertSame(arg1, firstNonNull);
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testHashCode() throws Throwable  {
        // No Comments were added
        Objects.hashCode((Object[]) null);
    }
  }
  