    @Test
    public void testBasicLogstashFormat() throws JsonException {

        PaxLoggingEvent event = MockEvents.createInfoEvent();

        JsonObject object = Json.createReader(new StringReader(format.toString(event))).readObject();
        assertEquals(MockEvents.LOG_MESSAGE, object.getString(LogstashEventFormat.MESSAGE));
        assertEquals(MockEvents.LOGGER_NAME, object.getString(LogstashEventFormat.SOURCE));
        assertEquals("INFO", object.getJsonArray(LogstashEventFormat.TAGS).getString(0));
        assertEquals(MockEvents.LOG_PROPERTY_VALUE,
                     object.getJsonObject(LogstashEventFormat.FIELDS).getString(MockEvents.LOG_PROPERTY_ID));
        assertNotNull(object.get(LogstashEventFormat.TIMESTAMP));

        System.out.println(object);
    }