@Test
    public void testFormatting () {
        VespaFormatter formatter = new VespaFormatter(serviceName, app);
        assertEquals(expected1, formatter.format(testRecord1));
        assertEquals(expected4, formatter.format(testRecord2));

        VespaFormatter fmt2 = new VespaFormatter(serviceName, null);
        assertEquals(expected2, fmt2.format(testRecord1));
        assertEquals(expected3, fmt2.format(testRecord2));
    }
Just make sure that the messages are parsed as expected.
vespalog/src/test/java/com/yahoo/log/VespaFormatterTestCase.java