### Question:
AWSEnvironment { @Override public boolean equals(Object o){ if(this == o){ return true; } if (o == null || !getClass().equals(o.getClass())) { return false; } AWSEnvironment that = (AWSEnvironment)o; return Objects.equals(this.account, that.getAccount()) && Objects.equals(this.region, that.getRegion()); } AWSEnvironment(String account, String region); String getAccount(); String getRegion(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testEquals(){ String account = "Hello"; String region = "World"; AWSEnvironment awsEnvironment1 = new AWSEnvironment(account, region); AWSEnvironment awsEnvironment2 = new AWSEnvironment(account, region); String account2 = "Hellos"; String region2 = "Worlds"; AWSEnvironment awsEnvironment3 = new AWSEnvironment(account2, region2); AWSEnvironment awsEnvironment4 = new AWSEnvironment(account, region2); Assert.assertEquals("Test Equals on self", awsEnvironment1, awsEnvironment1); Assert.assertNotEquals("Test Equals on different object", awsEnvironment1, new ArrayList()); Assert.assertEquals("Test Equals on 2 different, but equal objects", awsEnvironment1, awsEnvironment2); Assert.assertNotEquals("Test Equals on different Account", awsEnvironment1, awsEnvironment3); Assert.assertNotEquals("Test Equals on different Region", awsEnvironment2, awsEnvironment4); }