@Override
    public ScopeModel getScopeModel() {
        return Optional.ofNullable(RpcContext.getServiceContext().getConsumerUrl())
                .map(URL::getScopeModel)
                .orElse(super.getScopeModel());
    }
@Test
    void test2() {
        RpcServiceContext.getServiceContext().setConsumerUrl(null);
        Assertions.assertNull(instanceURL.getScopeModel());

        ModuleModel moduleModel = Mockito.mock(ModuleModel.class);
        RpcServiceContext.getServiceContext().setConsumerUrl(URL.valueOf("").setScopeModel(moduleModel));
        Assertions.assertEquals(moduleModel, instanceURL.getScopeModel());
    }