In what way does this test not work?  getBytesSize() returns length, which is the used portion of the array.  Putting a small event in a large array should give a small getBytesSize(), as this test would confirm.  Is it failing, or is it not accomplishing some goal?