@Test
    public void testPutLongHash() {
        // Config of the following schema, derived Nov 2024, by SchemaTestCase.testDeriving in the config-model
        //
        //                schema page {
        //
        //                    field domain_hash type long {
        //                        indexing: input domain | hash | attribute
        //                    }
        //
        //                    document page {
        //
        //                        field domain type string {
        //                            indexing: index | summary
        //                            match: word
        //                            rank: filter
        //                        }
        //                    }
        //                }
        IndexingProcessorTester tester = new IndexingProcessorTester("src/test/cfg2");

        DocumentType inputType = tester.getDocumentType("page");
        DocumentPut input = new DocumentPut(inputType, "id:ns:page::");
        input.getDocument().setFieldValue(inputType.getField("domain"), new StringFieldValue("domain1"));

        Document output = ((DocumentPut)tester.process(input)).getDocument();
        assertEquals("domain1", output.getFieldValue("domain").getWrappedValue());
        assertEquals(1386505442371493468L, output.getFieldValue("domain_hash").getWrappedValue());
    }
@author Simon Thoresen Hult
@author bratseth
docprocs/src/test/java/com/yahoo/docprocs/indexing/IndexingProcessorTestCase.java