### Question:
ExtractorConfig { @Override public boolean equals(Object object) { if (this == object) { return true; } if (object == null || object.getClass() != getClass()) { return false; } final ExtractorConfig other = (ExtractorConfig) object; return Double.compare(extract, other.extract) == 0 && Double.compare(dropoff, other.dropoff) == 0 && capacity == other.capacity; } ExtractorConfig(double extract, double dropoff, int capacity); static ExtractorConfig imports(Configurer configurer); static ExtractorConfig imports(Xml root); static Xml exports(ExtractorConfig config); double getExtract(); double getDropOff(); int getCapacity(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString(); static final String NODE_EXTRACTOR; static final String ATT_EXTRACT; static final String ATT_DROPOFF; static final String ATT_CAPACITY; }### Answer:
@Test void testEquals() { final ExtractorConfig config = new ExtractorConfig(1.0, 2.0, 3); assertEquals(config, config); assertEquals(config, new ExtractorConfig(1.0, 2.0, 3)); assertNotEquals(config, null); assertNotEquals(config, new Object()); assertNotEquals(config, new ExtractorConfig(0.0, 2.0, 3)); assertNotEquals(config, new ExtractorConfig(1.0, 0.0, 3)); assertNotEquals(config, new ExtractorConfig(1.0, 2.0, 0)); }