@Test
public void testEmpty() {
assertTrue("empty batching visitable should be empty!",
BatchingVisitables.isEmpty(BatchingVisitables.emptyBatchingVisitable()));
assertEquals("empty batching visitable should be empty!", 0,
BatchingVisitables.count(BatchingVisitables.emptyBatchingVisitable()));
BatchingVisitable<Long> bv = ListVisitor.create(Lists.newArrayList(0L, 1L, 2L, 3L));
assertFalse("non-empty batching visitable should not be empty!", BatchingVisitables.isEmpty(bv));
assertEquals("visitable had wrong size", 4, BatchingVisitables.count(bv));
assertTrue("empty visitable should always be true, even when told to visit an always-false place",
BatchingVisitables.emptyBatchingVisitable().batchAccept(1, AbortingVisitors.alwaysFalse()));
}