@Test public void filtered5() {

    Predicate<Quad> filter = x-> x.getSubject().equals(s2) || x.getSubject().equals(s1);  
    Txn.executeRead(basedsg, ()->{
        DatasetGraph dsg = new DatasetGraphFilteredView(basedsg, filter, Arrays.asList(g1, g2));
        long x0 = Iter.count(dsg.find(null, null, null, null));
        assertEquals(3,x0);
        long x1 = Iter.count(dsg.find(g2, null, null, null));
        assertEquals(2,x1);
    });
}