SimpleType type = new SimpleType(TypeCategory.ENTITY, "Entity", "", "Entity",false,false);
EntityType entityType = new EntityType(type, Collections.singleton(new Supertype(superType, superType)));
typeMappings.register(superType, queryTypeFactory.create(superType));
typeMappings.register(entityType, queryTypeFactory.create(entityType));
serializer.serialize(entityType, SimpleSerializerConfig.DEFAULT, new JavaWriter(writer));
assertTrue(writer.toString().contains("public final QEntity2 _super = new QEntity2(this);"));
}