### Question:
AWSLogReference { @Override public boolean equals(@Nullable Object o) { if (!(o instanceof AWSLogReference)) { return false; } AWSLogReference reference = (AWSLogReference) o; return (Objects.equals(getArn(), reference.getArn()) && Objects.equals(getLogGroup(), reference.getLogGroup())); }  @Nullable String getLogGroup(); void setLogGroup(final String logGroup); @Nullable String getArn(); void setArn(final String arn); @Override boolean equals(@Nullable Object o); @Override int hashCode();  }### Answer:
@SuppressWarnings("SelfEquals") @Test void testEqualityPositive() { Assertions.assertTrue(referenceA.equals(referenceB)); Assertions.assertTrue(referenceB.equals(referenceA)); Assertions.assertTrue(referenceA.equals(referenceA)); }
@Test void testEqualityNegativeBecauseArn() { Assertions.assertEquals(false, referenceA.equals(differentArn)); Assertions.assertEquals(false, differentArn.equals(referenceA)); }
@Test void testEqualityNegativeBecauseGroup() { Assertions.assertEquals(false, referenceA.equals(differentGroup)); Assertions.assertEquals(false, differentGroup.equals(referenceA)); }