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

    SolrInputDocument doc = mock(SolrInputDocument.class);
    bufferedWriter.add(-1, ImmutableMap.of("a", doc));
    verify(delegateWriter, never()).add(eq(-1), anyMap());
}