@Test
    public void testDocumentUpdate() throws ParseException {
        DocumentUpdate upd = new DocumentUpdate(manager.getDocumentType("test"), new DocumentId("id:myspace:test::anything"));
        assertEquals(Result.TRUE, evaluate("test", upd));
        assertEquals(Result.FALSE, evaluate("music", upd));
        assertEquals(Result.TRUE, evaluate("test or music", upd));
        assertEquals(Result.FALSE, evaluate("test and music", upd));
        assertEquals(Result.INVALID, evaluate("test.hint", upd));
        assertEquals(Result.INVALID, evaluate("test.anything", upd));
        assertEquals(Result.INVALID, evaluate("test.hint < 24", upd));
        // TODO Fails: assertEquals(Result.TRUE, evaluate("test.hint + 1 > 13", upd));
    }
@author Simon Thoresen Hult
@author bratseth
document/src/test/java/com/yahoo/document/select/DocumentSelectorTestCase.java