// Test that you can override the fetch type in subclasses
@Test
public void testQueryWithFetchTypeOverride() {
Query q = em.createQuery("select o from " + FetchTypeOverrideEntity.class.getSimpleName() + " o");
((QueryNotifier) q.unwrap(org.datanucleus.store.query.Query.class)).addListener("foobar", new QueryListener() {
@Override
public void listen(String soqlQuery) {
assertTrue(soqlQuery.toLowerCase().contains("lazyfetchfieldwithoverride__c"),
"Lazy fetch colums with Eager overrides should be loaded.");
assertFalse(soqlQuery.toLowerCase().contains("lazyfetchfield__c"),