@Test
public void testInit() throws NoSuchFieldException, IllegalAccessException {

    RegistryConfig registryConfig = new RegistryConfig()
        .setProtocol("multicast")
        .setAddress("224.5.6.7:6666");
    MulticastRegistry multicastRegistry = new MulticastRegistry(registryConfig);
    multicastRegistry.init();
    Assert.assertEquals("224.5.6.7", getAddress(multicastRegistry));
    Assert.assertEquals(6666, getPort(multicastRegistry));
}