protected void setup() throws JournalException, InterruptedException {
        this.closing = false;
        ensureHelperInLocal();
        initConfigs(isElectable);
        setupEnvironment();
    }
@Test(expected = JournalException.class)
    public void testSetupStandaloneMultitimes() throws Exception {
        long startMs = System.currentTimeMillis();
        try {
            String selfNodeHostPort = findUnbindHostPort();
            for (int i = 0; i < 2; i++) {
                BDBEnvironment environment = new BDBEnvironment(
                        createTmpDir(),
                        "standalone",
                        selfNodeHostPort,
                        selfNodeHostPort,
                        true);
                environment.setup();
            }
            Assert.fail();
        } finally {
            System.out.println("testSetupStandaloneMultitimes cost " + (System.currentTimeMillis() - startMs) / 1000 + " s");
        }
    }