@Test
public void testBadLengthOnLogon() throws Exception {

    String badMessage = "8=FIX.4.2\0019=10\00135=A\001108=30\00110=036\001";
    setUpBuffer(badMessage);
    try {
        decoder.decode(null, buffer, decoderOutput);
        fail("no exception");
    } catch (CriticalProtocolCodecException e) {
        // expected
    }
}