{
public void testCreateByteArrayValueData() throws Exception
{
byte[] buf = "0123456789".getBytes();
ByteArrayPersistedValueData vd = new ByteArrayPersistedValueData(0, buf);
assertTrue(vd.isByteArray());
assertEquals(10, vd.getLength());
assertEquals(0, vd.getOrderNumber());
assertEquals(10, vd.getAsByteArray().length);
assertTrue(vd.getAsStream() instanceof ByteArrayInputStream);
}