@Test
    void testDocumentNotFound() throws DocumentRetrieverException {
        ClientParameters params = createParameters()
                .setDocumentIds(asIterator(DOC_ID_1))
                .setPrintIdsOnly(true)
                .build();

        when(mockedSession.syncSend(any())).thenReturn(new GetDocumentReply(null));

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

        verify(mockedSession, times(1)).syncSend(any());
        assertEquals(outContent.toString(), "Document not found.\n");
    }
Test class for {@link DocumentRetriever}

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