### Question:
DefaultGenericArrayType implements GenericArrayType { @Override public boolean equals(Object object) { if (!(object instanceof GenericArrayType)) { return false; } GenericArrayType type = (GenericArrayType) object; return componentType.equals(type.getGenericComponentType()); } DefaultGenericArrayType(Type componentType); Type getGenericComponentType(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString(); static String toString(GenericArrayType type); static String toString(GenericArrayType type, ClassSerializer serializer);  }### Answer:
@Test public void equalsWithDifferentClass() { GenericArrayType genericArrayType = new DefaultGenericArrayType(Integer.class); assertFalse(genericArrayType.equals(new Object())); }
@Test public void equalsWithDifferentComponentTypes() { GenericArrayType genericArrayType1 = new DefaultGenericArrayType(Integer.class); GenericArrayType genericArrayType2 = new DefaultGenericArrayType(Number.class); assertFalse(genericArrayType1.equals(genericArrayType2)); }