public void executeLOBTest()
{
// Save Record
File file = new File("src/test/resources/nature.jpg");
long fileSize = file.getTotalSpace();
UserProfile userProfile = new UserProfile(1, "Amresh", file);
persist(userProfile);
// Find Record
clearEm();
UserProfile up = (UserProfile) find(UserProfile.class, 1);
Assert.assertNotNull(up);
Assert.assertEquals(1, up.getUserId());
Assert.assertEquals("Amresh", up.getUserName());
Assert.assertEquals(fileSize, up.getProfilePicture().getTotalSpace());
// Delete Record
clearEm();
delete(up);
Assert.assertNull(find(UserProfile.class, 1));