### Question:
SizeConfig { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + width; result = prime * result + height; return result; } SizeConfig(int width, int height); static SizeConfig imports(Configurer configurer); static SizeConfig imports(Xml root); static Xml exports(SizeConfig config); int getWidth(); int getHeight(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString(); static final String NODE_SIZE; static final String ATT_WIDTH; static final String ATT_HEIGHT; }### Answer:
@Test void testHashCode() { final SizeConfig hash = new SizeConfig(16, 32); assertHashEquals(hash, new SizeConfig(16, 32)); assertHashNotEquals(hash, new SizeConfig(0, 32)); assertHashNotEquals(hash, new SizeConfig(16, 0)); }