public void testPrefetchingToManyEmpty() throws Exception {
createTestData("testPrefetching");
UnitLocalConnection connection = new UnitLocalConnection(new ClientServerChannel(
getDomain()), LocalConnection.HESSIAN_SERIALIZATION);
ClientChannel channel = new ClientChannel(connection);
CayenneContext context = new CayenneContext(channel);
SelectQuery q = new SelectQuery(ClientMtTable1.class);
q.addOrdering(ClientMtTable1.GLOBAL_ATTRIBUTE1_PROPERTY, true);
q.addPrefetch(ClientMtTable1.TABLE2ARRAY_PROPERTY);