@Test(expected = BadCheckpointException.class)
public void testIncreaseCapacity() throws Exception {

  Assert.assertTrue(checkpoint.delete());
  EventQueueBackingStore backingStore =
      EventQueueBackingStoreFactory.get(checkpoint, 10, "test", new FileChannelCounter("test"));
  backingStore.close();
  EventQueueBackingStoreFactory.get(checkpoint, 11, "test", new FileChannelCounter("test"));
  Assert.fail();
}