@Test
public void testChannelBadPeerCollection() throws Exception {

    thrown.expect(InvalidArgumentException.class);
    thrown.expectMessage("Peer value is null.");
    final Channel channel = createRunningChannel(null);
    channel.queryByChaincode(hfclient.newQueryProposalRequest(),
            Arrays.asList((Peer[]) new Peer[] {null}));
}