### Question:
DefaultEntity implements Entity, EntityAwareCopyPerformers, EntityAwareEqualsPerformers { @Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (obj == this) { return true; } if (!(obj instanceof Entity)) { return false; } Entity other = (Entity) obj; return equals(other, new PerformerEntitiesChainImpl(this)); } DefaultEntity(final DataDefinition dataDefinition, final Long id, final Map<String, Object> fields);  DefaultEntity(final DataDefinition dataDefinition, final Long id);  DefaultEntity(final DataDefinition dataDefinition); @Override void setId(final Long id); @Override Long getId(); @Override void setActive(final boolean active); @Override void setField(final String fieldName, final Object fieldValue); @Override Map<String, Object> getFields(); @Override void addGlobalError(final String message, final String... vars); @Override void addGlobalMessage(final String message, final String... vars); @Override void addGlobalMessage(String message, boolean autoClose, final boolean extraLarge, String... vars); @Override void addGlobalError(String message, boolean autoClose, String... vars); @Override void addGlobalError(String message, boolean autoClose, final boolean extraLarge, String... vars); @Override void addError(final FieldDefinition fieldDefinition, final String message, final String... vars); @Override List<ErrorMessage> getGlobalErrors(); @Override List<GlobalMessage> getGlobalMessages(); @Override Map<String, ErrorMessage> getErrors(); @Override ErrorMessage getError(final String fieldName); @Override boolean isValid(); @Override boolean isFieldValid(final String fieldName); @Override void setNotValid(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override boolean flatEquals(final Entity otherEntity); @Override boolean equals(final Entity otherEntity, final PerformerEntitiesChain performersChain); @Override DefaultEntity copy(); @Override DefaultEntity copy(final PerformerEntitiesChain performersChain); @Override Object getField(final String fieldName); @Override String getStringField(final String fieldName); @Override boolean getBooleanField(final String fieldName); @Override BigDecimal getDecimalField(final String fieldName); @Override Integer getIntegerField(final String fieldName); @Override Long getLongField(final String fieldName); @SuppressWarnings("unchecked") @Override EntityList getHasManyField(final String fieldName); @SuppressWarnings("unchecked") @Override List<Entity> getManyToManyField(final String fieldName); @Override EntityTree getTreeField(final String fieldName); @Override Entity getBelongsToField(final String fieldName); @Override boolean isActive(); @Override DataDefinition getDataDefinition(); @Override String toString(); @Override Date getDateField(final String fieldName);  }### Answer:
@Test public final void shouldEqualsReturnsFalseForNullArgument() { final Entity firstEntity = new DefaultEntity(dataDefinition); boolean areEquals = firstEntity.equals(null); assertFalse(areEquals); }