setAuthenticationUser("junit");
List<String> allIds = new ArrayList<String>(NUM_DOCS);
for (int i = 0; i < NUM_DOCS; ++i) {
allIds.add(Long.toString(i));
}
server.deleteById(allIds);
server.commit();
QueryResponse rsp = server.query(query);
long junitResults = rsp.getResults().getNumFound();
assertEquals(0, junitResults);