*/
public class BlobTest extends ActiveJDBCTest {
@Test
public void shouldWriteAndReadBytesToDb() throws SQLException, IOException {
Image image = new Image();
byte[] igorBytes = Util.readResourceBytes("/igor.jpg");
image.set("name", "igor's head");
image.set("content", igorBytes);
image.saveIt();
Image igor1 = (Image) Image.findAll().get(0);
byte[] igor1Bytes = igor1.getBytes("content");
assertEqual(igorBytes, igor1Bytes);
}