public PulsarMockLedgerHandle(PulsarMockBookKeeper bk, long id, DigestType digest, byte[] passwd) throws GeneralSecurityException { super(bk, id, new LedgerMetadata(3, 3, 2, DigestType.MAC, "".getBytes()), DigestType.MAC, "".getBytes(), EnumSet.noneOf(WriteFlag.class)); this.bk = bk; this.id = id; this.digest = digest; this.passwd = Arrays.copyOf(passwd, passwd.length); readHandle = new PulsarMockReadHandle(bk, id, getLedgerMetadata(), entries); }