public void testJoinOnOneToMany_Offset() {
Course course1 = newCourse("Biology");
makePersistentInTxn(course1, TXN_START_END);
Course course2 = newCourse("Not Biology");
makePersistentInTxn(course2, TXN_START_END);
Student student = newStudent(10, course1, course2);
makePersistentInTxn(student, TXN_START_END);
Student student2 = newStudent(11, course1, course2);
makePersistentInTxn(student2, TXN_START_END);
Student student3 = newStudent(10, course1, course2);
makePersistentInTxn(student3, TXN_START_END);
beginTxn();
Query q = pm.newQuery(
"select from " + Student.class.getName() + " where "
+ "courses.contains(c) && c.department == 'Biology' && "