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

    Peer badpeer = hfclient.newPeer("badpeer", "grpc://localhost:7051");
    badpeer.sendProposal(FabricProposal.SignedProposal.newBuilder().build());
    Assert.fail("Expected peer with no channel throw exception");
}