public static BDBJournalCursor getJournalCursor(BDBEnvironment env, long fromKey, long toKey)
            throws JournalException, JournalInconsistentException, InterruptedException {
        return getJournalCursor(env, "", fromKey, toKey);
    }
@Test(expected = JournalException.class)
    public void testDatabaseNamesFails(@Mocked BDBEnvironment environment) throws Exception {
        new Expectations(environment) {
            {
                environment.getDatabaseNamesWithPrefix("");
                minTimes = 0;
                result = null;
            }
        };
        BDBJournalCursor.getJournalCursor(environment, 10, 10);
        Assert.fail();
    }