@Test
    public void requireDescriptiveErrorMsgForLongs() throws Exception {
        DocumentTypeManager dtm = setupTypes();
        try {
            VespaXMLDocumentReader documentReader = new VespaXMLDocumentReader(
                    new ByteArrayInputStream(("<document id=\"id:ns:doctype::bar\" type=\"doctype\">" +
                                              "  <longfield></longfield>" +
                                              "</document>").getBytes(StandardCharsets.UTF_8)), dtm);
            new Document(documentReader);
            fail("Sorry mac");
        } catch (DeserializationException e) {
            assertTrue(e.getMessage().contains("Field 'longfield': Invalid long \"\""));
        }
    }
@author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
@since 5.1.29
document/src/test/java/com/yahoo/vespaxmlparser/XMLNumericFieldErrorMsgTestCase.java