@Test
public void testChannelBadPeerNull() throws Exception {

    thrown.expect(InvalidArgumentException.class);
    thrown.expectMessage("Peer value is null.");
    final Channel channel = createRunningChannel(null);
    channel.queryBlockByHash(null, "rick".getBytes());
}