@Test
public void testChannelPeerJoinNoOrderer() throws Exception {

    thrown.expect(ProposalException.class);
    thrown.expectMessage("Channel channel does not have any orderers associated with it.");
    final Channel channel = createRunningChannel(null);
    //Peer joining channel were no orderer is there .. not likely.
    channel.joinPeer(hfclient.newPeer("peerJoiningNOT", "grpc://localhost:22"));
}