    @Test
    public void testRegister() throws Exception {

        URL url = new URL(ServiceType.PROVIDER.getLabel(), DemoService.class.getName());
        registry.register(url);
        new DefaultProtocol().export(DemoService.class.getName(), DemoServiceImp.class);
    }