public void TestReadBytesbyteArray()
{
ActiveMQBytesMessage msg = new ActiveMQBytesMessage();
byte[] data = new byte[50];
for(int i = 0; i < data.Length; i++)
{
data[i] = (byte) i;
}
msg.WriteBytes(data);
msg.Reset();
byte[] test = new byte[data.Length];
msg.ReadBytes(test);
for(int i = 0; i < test.Length; i++)
{
Assert.IsTrue(test[i] == i);
}
}