@Test
public void testReferClass() {

    Invoker<IDemoService> refer = protocol.refer(IDemoService.class, registryUrl);
    Class<IDemoService> serviceClass = refer.getInterface();
    assertThat(serviceClass.getName(), is("com.alibaba.dubbo.rpc.protocol.redis.IDemoService"));
}