package org.hibernate.ogm.test.simpleentity;

import org.hibernate.Session;

/**
 * @author Emmanuel Bernard
 */
public class BootstrapTest extends OgmTestCase {

	public void testBootstrap() throws Exception {
		final Session session = openSession();
		session.close();
	}

	@Override
	protected Class<?>[] getAnnotatedClasses() {
		return new Class<?>[] {
				Hypothesis.class
		};
	}
}

@@ -68,16 +68,50 @@
 Session;
+%0Aimport org.hibernate.Transaction;
 %0A%0A/**%0A *
@@ -279,16 +279,427 @@
 sion();%0A
+%09%09Hypothesis hyp = new Hypothesis();%0A%09%09hyp.setId( %221234567890%22 );%0A%09%09hyp.setDescription( %22P != NP%22 );%0A%09%09final Transaction transaction = session.beginTransaction();%0A%09%09session.persist( hyp );%0A%09%09session.flush();%0A%09%09session.clear();%0A%09%09final Hypothesis loadedHyp = (Hypothesis) session.get( Hypothesis.class, hyp.getId() );%0A%09%09assertEquals( hyp.getDescription(), loadedHyp.getDescription() );%0A%09%09transaction.rollback();%0A
 %09%09sessio

Improve test to add insertion and subsequent read