@Before
    @Override
    public void setup() throws Exception {
        super.setup();
        this.indexStorePath = this.path + File.separator + "index";
        FileUtils.forceMkdir(new File(this.indexStorePath));
        this.allocateService = new AllocateFileService(FileType.FILE_INDEX, indexStorePath, this.logStoreFactory);
        this.allocateService.start();
        this.fileManager = this.logStoreFactory.newFileManager(FileType.FILE_INDEX, indexStorePath,
            this.allocateService);
    }
Use indexFile to test fileManager
@author hzh (642256541@qq.com)
jraft-extension/java-log-storage-impl/src/test/java/com/alipay/sofa/jraft/storage/file/FileManagerTest.java