@Test(expected = BufferUnderflowException.class)
public void testSeekPastMagicBytes() {

    // Fail in another way, there is data in the stream but no magic bytes.
    byte[] brokenMessage = HEX.decode("000000");
    MAINNET.getDefaultSerializer().seekPastMagicBytes(ByteBuffer.wrap(brokenMessage));
}