### Question:
FramesConfig { @Override public boolean equals(Object object) { if (this == object) { return true; } if (object == null || object.getClass() != getClass()) { return false; } final FramesConfig other = (FramesConfig) object; return horizontalFrames == other.horizontalFrames && verticalFrames == other.verticalFrames && offsetX == other.offsetX && offsetY == other.offsetY; } FramesConfig(int horizontalFrames, int verticalFrames, int offsetX, int offsetY); static FramesConfig imports(Configurer configurer); static FramesConfig imports(Xml root); static Xml exports(FramesConfig config); int getHorizontal(); int getVertical(); int getOffsetX(); int getOffsetY(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString(); static final String NODE_FRAMES; static final String ATT_HORIZONTAL; static final String ATT_VERTICAL; static final String ATT_OFFSET_X; static final String ATT_OFFSET_Y; }### Answer:
@Test void testEquals() { final FramesConfig config = new FramesConfig(1, 2, 3, 4); assertEquals(config, config); assertEquals(config, new FramesConfig(1, 2, 3, 4)); assertNotEquals(config, null); assertNotEquals(config, new Object()); assertNotEquals(config, new FramesConfig(0, 2, 3, 4)); assertNotEquals(config, new FramesConfig(1, 0, 3, 4)); assertNotEquals(config, new FramesConfig(1, 2, 0, 4)); assertNotEquals(config, new FramesConfig(1, 2, 3, 0)); }