@Override
    public void register(FixedResult result) {
        if (isRegistered.compareAndSet(false, true)) {
            RegisterManager.INSTANCE.register();
            if (!getRegisterConfig().isOpenMigration()) {
                // 阻止原注册中心注册
                result.setResult(null);
            }
        }
    }
@Test
    public void register() {
        final FixedResult fixedResult = new FixedResult();
        registerCenterService.register(fixedResult);
        Assert.assertTrue(fixedResult.isSkip());
        registerConfig.setOpenMigration(true);
        final FixedResult openResult = new FixedResult();
        registerCenterService.register(openResult);
        Assert.assertFalse(openResult.isSkip());
    }