}
public void testReadIntegersOverStream() throws Exception
{
LargeMessageControllerImpl buffer = createBufferWithIntegers(3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
HornetQBufferInputStream is = new HornetQBufferInputStream(buffer);
DataInputStream dataInput = new DataInputStream(is);
for (int i = 1; i <= 15; i++)
{
Assert.assertEquals(i, dataInput.readInt());