@Override
    @Before
    public void setup() throws Exception {
        super.setup();
        this.raftMetaStorage = new LocalRaftMetaStorage(this.path, new RaftOptions());
        Mockito.when(this.node.getNodeMetrics()).thenReturn(null);
        assertTrue(this.raftMetaStorage.init(newOptions()));
    }
@author boyan (boyan@alibaba-inc.com)

2018-Apr-11 4:50:23 PM
jraft-core/src/test/java/com/alipay/sofa/jraft/storage/impl/LocalRaftMetaStorageTest.java