@Test
    void basicCase() throws Exception {
        final ConfigSource configSource = XdsTestResources.basicConfigSource(BOOTSTRAP_CLUSTER_NAME);
        final Cluster bootstrapCluster = bootstrapCluster(server.httpUri(), BOOTSTRAP_CLUSTER_NAME);
        final Cluster staticCluster = createCluster("cluster");
        final Listener listener = staticResourceListener();
        final Bootstrap bootstrap = XdsTestResources.bootstrap(configSource, listener,
                                                               bootstrapCluster, staticCluster);
        try (XdsBootstrapImpl xdsBootstrap = new XdsBootstrapImpl(bootstrap)) {
            final ListenerRoot listenerRoot = xdsBootstrap.listenerRoot("listener");
            final TestResourceWatcher watcher = new TestResourceWatcher();
            listenerRoot.addSnapshotWatcher(watcher);
            final ListenerSnapshot listenerSnapshot =
                    watcher.blockingChanged(ListenerSnapshot.class);
            assertThat(listenerSnapshot.xdsResource().resource()).isEqualTo(listener);

            final RouteConfiguration expectedRoute =
                    listener.getApiListener()
                            .getApiListener()
                            .unpack(HttpConnectionManager.class)
                            .getRouteConfig();
            final RouteSnapshot routeSnapshot = listenerSnapshot.routeSnapshot();
            assertThat(routeSnapshot.xdsResource().resource()).isEqualTo(expectedRoute);

            final ClusterSnapshot clusterSnapshot = routeSnapshot.virtualHostSnapshots().get(0)
                                                                 .routeEntries().get(0)
                                                                 .clusterSnapshot();
            assertThat(clusterSnapshot.xdsResource().resource()).isEqualTo(staticCluster);
            final ClusterLoadAssignment expectedEndpoint =
                    cache.getSnapshot(GROUP).endpoints().resources().get("cluster");
            final EndpointSnapshot endpointSnapshot = clusterSnapshot.endpointSnapshot();
            assertThat(endpointSnapshot.xdsResource().resource()).isEqualTo(expectedEndpoint);
        }
    }
This class ensures that the dynamic bootstrap configuration example at
<a href="https://www.envoyproxy.io/docs/envoy/latest/configuration/overview/examples#mostly-static-with-dynamic-eds">
Mostly static with dynamic EDS</a> is parsed and fetched correctly.
xds/src/test/java/com/linecorp/armeria/xds/MostlyStaticWithDynamicEdsTest.java