### Question:
PeerId implements Copiable<PeerId>, Serializable, Checksum { public boolean isPriorityNotElected() { return this.priority == ElectionPriority.NotElected; } PeerId();  PeerId(final Endpoint endpoint, final int idx);  PeerId(final String ip, final int port);  PeerId(final String ip, final int port, final int idx);  PeerId(final Endpoint endpoint, final int idx, final int priority);  PeerId(final String ip, final int port, final int idx, final int priority); @Override long checksum(); static PeerId emptyPeer(); @Override PeerId copy(); static PeerId parsePeer(final String s); Endpoint getEndpoint(); String getIp(); int getPort(); int getIdx(); int getPriority(); void setPriority(int priority); boolean isEmpty(); @Override String toString(); boolean parse(final String s); boolean isPriorityNotElected(); boolean isPriorityDisabled(); @Override int hashCode(); @Override boolean equals(final Object obj); static final PeerId ANY_PEER; }### Answer:
@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()); }