### Question:
ExtractableConfig { @Override public boolean equals(Object object) { if (this == object) { return true; } if (object == null || object.getClass() != getClass()) { return false; } final ExtractableConfig other = (ExtractableConfig) object; return type.equals(other.type) && quantity == other.quantity; } ExtractableConfig(String type, int quantity); static ExtractableConfig imports(Configurer configurer); static ExtractableConfig imports(Xml root); static Xml exports(ExtractableConfig config); String getType(); int getQuantity(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString(); static final String NODE_EXTRACTABLE; static final String ATT_QUANTITY; static final String ATT_TYPE; }### Answer:
@Test void testEquals() { final ExtractableConfig config = new ExtractableConfig("gold", 1); assertEquals(config, config); assertEquals(config, new ExtractableConfig("gold", 1)); assertNotEquals(config, null); assertNotEquals(config, new Object()); assertNotEquals(config, new ExtractableConfig("wood", 1)); assertNotEquals(config, new ExtractableConfig("gold", 0)); }