@Test
    public void initUpstreamCacheManagerTest() {
        final UpstreamWithSelectorId upstream = new UpstreamWithSelectorId(SELECTOR_ID, null);
        Assertions.assertEquals(upstream, upstream);
        final UpstreamWithSelectorId upstream2 = new UpstreamWithSelectorId(SELECTOR_ID, null);
        Assertions.assertEquals(upstream, upstream2);
        upstream.setUpstream(null);
        upstream.setSelectorId(null);
        Assertions.assertTrue(upstream.hashCode() >= 0);
        Assertions.assertNotNull(upstream.toString());
        Assertions.assertNotEquals(upstream, upstream2);
        Assertions.assertNotEquals(upstream, null);
        Assertions.assertNotEquals(upstream, SELECTOR_ID);
        final UpstreamWithSelectorId upstream3 = new UpstreamWithSelectorId(SELECTOR_ID, Upstream.builder().build());
        Assertions.assertNotEquals(upstream, upstream3);
        final UpstreamWithSelectorId upstream4 = new UpstreamWithSelectorId(null, Upstream.builder().build());
        Assertions.assertNotEquals(upstream, upstream4);
    }
The type UpstreamWithSelectorId check task test.
shenyu-loadbalancer/src/test/java/org/apache/shenyu/loadbalancer/cache/UpstreamWithSelectorIdTest.java