@Test
    void testClusterLookup() throws DocumentRetrieverException {
        final String cluster = "storage",
                expectedRoute = "[Content:cluster=storage]";

        ClientParameters params = createParameters()
                .setCluster(cluster)
                .build();

        ClusterList clusterList = new ClusterList(List.of(new ClusterDef(cluster)));

        DocumentRetriever documentRetriever = createDocumentRetriever(params, clusterList);
        documentRetriever.retrieveDocuments();

        verify(mockedFactory).createDocumentAccess(argThat(o -> o.getRoute().equals(expectedRoute)));
    }
Test class for {@link DocumentRetriever}

@author bjorncs
vespaclient-java/src/test/java/com/yahoo/vespaget/DocumentRetrieverTest.java