@Test
public void testAdd_PastFlush() throws SolrServerException, IOException {

    SolrInputDocument docA = mock(SolrInputDocument.class);
    SolrInputDocument docB = mock(SolrInputDocument.class);
    SolrInputDocument docC = mock(SolrInputDocument.class);
    bufferedWriter.add(-1, ImmutableMap.of("a", docA));
    bufferedWriter.add(-1, ImmutableMap.of("b", docB));
    bufferedWriter.add(-1, ImmutableMap.of("c", docC));
    verify(delegateWriter).add(eq(-1), eq(ImmutableMap.of("a", docA, "b", docB, "c", docC)));
}