@Test(expected = IllegalArgumentException.class)
public void testInvalidCapacityNegative() throws Exception {

  backingStore.close();
  File checkpoint = backingStoreSupplier.getCheckpoint();
  Assert.assertTrue(checkpoint.delete());
  backingStore = new EventQueueBackingStoreFileV2(
      checkpoint, -1, "test", new FileChannelCounter("test")
  );
  queue = new FlumeEventQueue(backingStore,
                              backingStoreSupplier.getInflightTakes(),
                              backingStoreSupplier.getInflightPuts(),
                              backingStoreSupplier.getQueueSetDir());
}