@Test
public void pingWriteShouldSucceed() throws Exception {

    ChannelPromise promise = newPromise();
    encoder.writePing(ctx, false, emptyPingBuf(), promise);
    verify(writer).writePing(eq(ctx), eq(false), eq(emptyPingBuf()), eq(promise));
}