// check for implicit flush.
if (++counter == 5)
{
Map<String, Client> clients = (Map<String, Client>) em.getDelegate();
Batcher client = (Batcher) clients.get(PERSISTENCE_UNIT);
Assert.assertEquals(5, client.getBatchSize());
em.clear();
for (int i = 0; i < 5; i++)
{
// assert on each batch size record