Mockito.verify(solrServerMock, Mockito.times(1)).deleteById(Mockito.eq("1"));
}
@Test
public void testDeleteByIdWithCollection() throws IOException, SolrServerException {
Mockito.when(solrServerMock.deleteById(Mockito.anyListOf(String.class))).thenReturn(new UpdateResponse());
List<String> idsToDelete = Arrays.asList("1", "2");
UpdateResponse updateResponse = solrTemplate.deleteById(idsToDelete);
Assert.assertNotNull(updateResponse);
@SuppressWarnings("unchecked")
ArgumentCaptor<List<String>> captor = (ArgumentCaptor<List<String>>) (Object) ArgumentCaptor.forClass(List.class);