ExceptionLogger implements InitializingBean { protected String makeLogMessage(Exception ex) { String exceptionCode = resolveExceptionCode(ex); return formatLogMessage(exceptionCode, ex.getMessage()); } ExceptionLogger();  ExceptionLogger(String name); void setExceptionCodeResolver(
            ExceptionCodeResolver exceptionCodeResolver); void setExceptionLevelResolver(
            ExceptionLevelResolver exceptionLevelResolver); void setLogMessageFormat(String logMessageFormat); void setTrimLogMessage(boolean trimLogMessage); void setDefaultCode(String defaultCode); void setDefaultMessage(String defaultMessage); @Override void afterPropertiesSet(); void log(Exception ex); void info(Exception ex); void warn(Exception ex); void error(Exception ex);  }
@Test public void testMakeLogMessage_exceptionCodeResolver_is_null() { Exception ex = new FileNotFoundException("occur file not found exception."); String actualLogMessage = testTarget.makeLogMessage(ex); String expectedLogMessage = "[UNDEFINED-CODE] occur file not found exception."; assertThat(actualLogMessage, is(expectedLogMessage)); }