@Test
void testEquals() {

    final List<String> otherConstants = new ArrayList<>(ENUM_CONSTANTS);
    otherConstants.add("Z");
    final GeneratedEnumType other = new GeneratedEnumType(TYPE_NAME, otherConstants);
    assertEquals(instance, instance);
    assertFalse(instance.equals(null));
    assertFalse(instance.equals(1));
    assertFalse(instance.equals(Integer.class));
    assertNotEquals(instance, other);
    assertNotEquals(other, instance);
}