@Test
    public void testWeight() {
        assertEquals(0, shenyuServiceInstance.getWeight());
        shenyuServiceInstance.setWeight(1);
        assertEquals(1, shenyuServiceInstance.getWeight());
    }
The Test Case For {@link ShenyuServiceInstance}.
shenyu-plugin/shenyu-plugin-proxy/shenyu-plugin-rpc/shenyu-plugin-grpc/src/test/java/org/apache/shenyu/plugin/grpc/resolver/ShenyuServiceInstanceTest.java