}
@Test
public void testWaitDecoder() {
final HeaderDecoder headerDecoder = new HeaderDecoder();
final WaitDecoder decoder = new WaitDecoder();
final String inputStr = "WAIT 3 100\n";
final ByteBuffer bb = ByteBuffer.wrap(inputStr.getBytes());
decoder.parse(bb, headerDecoder.parse(bb).getPayloadLength());
assertEquals(100, decoder.getPauseSeconds());
}