@Override
    public void init() {
        // registry processor
        registerProcessor();
        if (initialized.compareAndSet(false, true)) {
            super.init();
        }
    }
@Test
	public void testInit() throws NoSuchFieldException, IllegalAccessException {

		MockedStatic<EnhancedServiceLoader> enhancedServiceLoaderMockedStatic = Mockito.mockStatic(EnhancedServiceLoader.class);
		enhancedServiceLoaderMockedStatic.when(() -> EnhancedServiceLoader.load((RegisterCheckAuthHandler.class))).thenReturn(null);

		MockedStatic<MultiRegistryFactory> multiRegistryFactoryMockedStatic = Mockito.mockStatic(MultiRegistryFactory.class);
		multiRegistryFactoryMockedStatic.when(MultiRegistryFactory::getInstances).thenReturn(
				Collections.emptyList());

		XID.setIpAddress("127.0.0.1");
		XID.setPort(8093);

		nettyRemotingServer.init();

		multiRegistryFactoryMockedStatic.close();
		enhancedServiceLoaderMockedStatic.close();

		Field field = NettyRemotingServer.class.getDeclaredField("initialized");
		field.setAccessible(true);

		Assertions.assertTrue(((AtomicBoolean)field.get(nettyRemotingServer)).get());
	}