public boolean isPriorityNotElected() {
        return this.priority == ElectionPriority.NotElected;
    }
@Test
    public void testIsPriorityNotElected() {

        final Endpoint endpoint1 = new Endpoint("192.168.1.1", 8081);
        final PeerId peer1 = new PeerId(endpoint1, 0, 0);
        assertEquals("192.168.1.1:8081::0", peer1.toString());
        assertTrue(peer1.isPriorityNotElected());
    }