public abstract MySqlSplit toMySqlSplit();
@Test
    public void testRecordBinlogSplitState() throws Exception {

        final MySqlBinlogSplit split =
                getTestBinlogSplitWithOffset(
                        BinlogOffset.ofBinlogFilePosition("mysql-bin.000001", 4));

        final MySqlBinlogSplitState mySqlSplitState = new MySqlBinlogSplitState(split);
        mySqlSplitState.setStartingOffset(
                BinlogOffset.ofBinlogFilePosition("mysql-bin.000001", 100));

        assertEquals(
                getTestBinlogSplitWithOffset(
                        BinlogOffset.ofBinlogFilePosition("mysql-bin.000001", 100)),
                mySqlSplitState.toMySqlSplit());

        mySqlSplitState.setStartingOffset(
                BinlogOffset.ofBinlogFilePosition("mysql-bin.000001", 400));
        assertEquals(
                getTestBinlogSplitWithOffset(
                        BinlogOffset.ofBinlogFilePosition("mysql-bin.000001", 400)),
                mySqlSplitState.toMySqlSplit());
    }