private static void encodeTestMessage(final ByteBuffer byteBuffer)
    {
        final UnsafeBuffer buffer = new UnsafeBuffer(byteBuffer);
        final int encodedLength = ExampleUsingGeneratedStub.encode(CAR_ENCODER, buffer, HEADER_ENCODER);

        byteBuffer.position(encodedLength);
    }
Main entry point for the example.

@param args which are ignored.
@throws Exception if an error occurs when parsing the XML or doing IO.
sbe-samples/src/main/java/uk/co/real_logic/sbe/examples/OtfExample.java