Test creating a normal RawDataBlock
byte[] data = new byte[ 512 ];
for (int j = 0; j < 512; j++)
{
data[ j ] = ( byte ) j;
}
RawDataBlock block = new RawDataBlock(new ByteArrayInputStream(data));
assertTrue("Should not be at EOF", !block.eof());
byte[] out_data = block.getData();
assertEquals("Should be same length", data.length, out_data.length);
for (int j = 0; j < 512; j++)
{
assertEquals("Should be same value at offset " + j, data[ j ],
out_data[ j ]);
}