@Test
public void testChannelQueryBlockByHashNotInitialized() throws Exception {

    thrown.expect(InvalidArgumentException.class);
    thrown.expectMessage("Channel channel has not been initialized.");
    final Channel channel = createRunningChannel(null);
    setField(channel, "initialized", false);
    channel.queryBlockByHash("hyper this hyper that".getBytes());
}