public String getFormattedMessage() {
        if (formattedMessage != null) {
            return formattedMessage;
        }
        if (argumentArray != null) {
            formattedMessage = MessageFormatter.arrayFormat(message, argumentArray).getMessage();
        } else {
            formattedMessage = message;
        }

        return formattedMessage;
    }
@Test
    public void testNoFormattingWithoutArgs() {
        String message = "testNoFormatting";
        Throwable throwable = null;
        Object[] argArray = null;
        LoggingEvent event = new LoggingEvent("", logger, Level.INFO, message, throwable, argArray);
        assertNull(event.formattedMessage);
        assertEquals(message, event.getFormattedMessage());
    }