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

    List<String> idsToDelete = Lists.newArrayList("idA", "idB");
    when(solrServer.deleteById(idsToDelete)).thenThrow(
            new SolrException(ErrorCode.BAD_REQUEST, "should be swallowed and logged"));
    solrWriter.deleteById(-1, idsToDelete);
    // Nothing should happen -- no document successfully added, and exception is swallowed
}