@Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), instances);
    }
@Test
    void testHashCode() {
        BatchInstanceRedoData redoData1 = new BatchInstanceRedoData("a", "b");
        redoData1.setInstances(Collections.singletonList(new Instance()));
        BatchInstanceRedoData redoData2 = new BatchInstanceRedoData("a", "b");
        redoData2.setInstances(Collections.singletonList(new Instance()));
        assertEquals(redoData1.hashCode(), redoData2.hashCode());
        redoData2.getInstances().get(0).setIp("1.1.1.1");
        assertNotEquals(redoData1.hashCode(), redoData2.hashCode());
    }