@Test
public void testNPE() throws Exception {

    try {
        decoder.decode(null, null, null);
        fail("no exception");
    } catch (ProtocolCodecException e) {
        // expected
        assertTrue(e.getCause() instanceof NullPointerException);
    }
}