assertEquals("Fenced ledger should have correct lastAddConfirmed", lh.getLastAddConfirmed(),
recoveredLh.getLastAddConfirmed());
}
private void startDeadBookie(ServerConfiguration conf) throws Exception {
Bookie rBookie = new Bookie(conf) {
@Override
public void recoveryAddEntry(ByteBuffer entry, WriteCallback cb, Object ctx, byte[] masterKey)
throws IOException, BookieException {
// drop request to simulate a dead bookie
throw new IOException("Couldn't write entries for some reason");