@Test (expected = PeerException.class)
public void testSendNullProposal() throws PeerException, InvalidArgumentException {

    peer.sendProposal(null);
    Assert.fail("Expected null proposal to throw exception.");
}