### Question:
ExtractableConfig { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + type.hashCode(); result = prime * result + quantity; return result; } 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 testHashCode() { final ExtractableConfig hash = new ExtractableConfig("gold", 1); assertHashEquals(hash, new ExtractableConfig("gold", 1)); assertHashNotEquals(hash, new ExtractableConfig("wood", 1)); assertHashNotEquals(hash, new ExtractableConfig("gold", 0)); }