@Test
public void testFixJournalFileSize() throws Exception {

   if (journalType == JournalType.ASYNCIO) {
      assumeTrue("AIO is not supported on this platform", AIOSequentialFileFactory.isSupported());
   }
   final Configuration configuration = createDefaultInVMConfig().setJournalType(journalType);
   final ExecutorFactory executorFactory = new OrderedExecutorFactory(executor);
   final ExecutorFactory ioExecutorFactory = new OrderedExecutorFactory(ioExecutor);
   final JournalStorageManager manager = new JournalStorageManager(configuration, null, executorFactory, null, ioExecutorFactory);
   Assert.assertEquals(4096, manager.fixJournalFileSize(1024, 4096));
   Assert.assertEquals(4096, manager.fixJournalFileSize(4098, 4096));
   Assert.assertEquals(8192, manager.fixJournalFileSize(8192, 4096));
}