@Test
    public void testInheritance() throws ParseException {
        new DocumentSelector("parent.parentField = \"parentValue\"");
        List<DocumentPut> documents = createDocs();
        assertEquals(Result.TRUE, evaluate("test", documents.get(0)));
        assertEquals("Matching on type is exact", Result.FALSE, evaluate("parent", documents.get(0)));
        assertEquals(Result.TRUE, evaluate("test.parentField = \"parentValue\"", documents.get(0)));
        assertEquals("Fields may be accessed by parent type",
                     Result.TRUE, evaluate("parent.parentField = \"parentValue\"", documents.get(0)));
    }
@author Simon Thoresen Hult
@author bratseth
document/src/test/java/com/yahoo/document/select/DocumentSelectorTestCase.java