@@ -0,0 +1,1275 @@
+package com.querydsl.collections;%0A%0Aimport static com.querydsl.collections.CollQueryFactory.from;%0Aimport static com.querydsl.core.alias.Alias.$;%0Aimport static com.querydsl.core.alias.Alias.alias;%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport java.util.Collection;%0A%0Aimport org.junit.Test;%0A%0Aimport com.google.common.base.Optional;%0Aimport com.google.common.collect.Lists;%0A%0Apublic class GuavaOptionalTest %7B%0A%0A    public static class Cat %7B%0A%0A        private Optional%3CString%3E pedigree = Optional.absent();%0A%0A        public Cat() %7B%0A        %7D%0A%0A        public Cat(Optional%3CString%3E pedigree) %7B%0A            this.pedigree = pedigree;%0A        %7D%0A%0A        public Optional%3CString%3E getPedigree() %7B%0A            return pedigree;%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void Test() %7B%0A        Collection%3CCat%3E cats = Lists.newArrayList();%0A        cats.add(new Cat(Optional.%3CString%3Eabsent()));%0A        cats.add(new Cat(Optional.of(%22persian%22)));%0A        Cat c = alias(Cat.class);%0A%0A        for (Cat cat : from(c, cats)%0A                .where($(c.getPedigree()).eq(Optional.of(%22persian%22)))%0A                .list($(c))) %7B%0A%0A            assertTrue(cat.getPedigree().isPresent());%0A            assertEquals(%22persian%22, cat.getPedigree().get());%0A        %7D%0A    %7D%0A%7D%0A

Add test case for #1262