private static DocumentPut createDocument(String id, Integer hInt, float hFloat, String hString, String content) {
        Document doc = new Document(manager.getDocumentType("test"), new DocumentId(id));
        if (hInt != null)
            doc.setFieldValue("hint", new IntegerFieldValue(hInt));
        doc.setFieldValue("hfloat", new FloatFieldValue(hFloat));
        if (hString != null)
            doc.setFieldValue("hstring", new StringFieldValue(hString));
        doc.setFieldValue("content", new StringFieldValue(content));
        doc.setFieldValue("parentField", new StringFieldValue("parentValue"));
        return new DocumentPut(doc);
    }
@author Simon Thoresen Hult
@author bratseth
document/src/test/java/com/yahoo/document/select/DocumentSelectorTestCase.java