consensus-bizur/src/test/java/com/mboysan/consensus/BizurNodeTest.java
/**
     * Tests the failure of set/get operations when the leader is killed/disconnected and there was no time
     * to elect a new one.
     */
Tests the failure of set/get operations when the leader is killed/disconnected and there was no time
to elect a new one.
Tests the failure of set / get operations when the leader is killed / disconnected and there was no time to elect a new one .
@Test
    void testWhenLeaderKilledThenSetAndGetFails() throws Exception {
        init(3);
        int leaderId = assertOneLeader();
        kill(leaderId);
        assertThrows(ExecutionException.class, () -> getNode(leaderId).set("testKey", "testVal").get());
        assertThrows(ExecutionException.class, () -> getNode(leaderId).get("testKey").get());
    }
@ Test void testWhenLeaderKilledThenSetAndGetFails ( ) throws Exception { init ( 3 ) ; int leaderId = assertOneLeader ( ) ; kill ( leaderId ) ; assertThrows ( ExecutionException . class , ( ) -> getNode ( leaderId ) . set ( "testKey" , "testVal" ) . get ( ) ) ; assertThrows ( ExecutionException . class , ( ) -> getNode ( leaderId ) . get ( "testKey" ) . get ( ) ) ; }
Tests the failure of set/get operations when the leader is killed/disconnected and there was no time
 to elect a new one.
Tests the failure of set / get operations when the leader is killed / disconnected and there was no time to elect a new one .