@Test
public void testPreHandle_LogOutput() throws Exception {

    // parameter create
    HandlerMethod paramHandler = new HandlerMethod(controller, TraceLoggingInterceptorController.class
            .getMethod("createForm"));
    try {
        // run
        interceptor.preHandle(request, response, paramHandler);
    } catch (Exception e) {
        fail("illegal case");
    }
    String logMessage = jdbcTemplate.queryForObject(
            "SELECT FORMATTED_MESSAGE FROM LOGGING_EVENT WHERE EVENT_ID=:id",
            Collections.singletonMap("id", 1), String.class);
    Long startTime = (Long) request.getAttribute(
            TraceLoggingInterceptor.class.getName() + ".startTime");
    assertThat(logMessage, is(
            "[START CONTROLLER] TraceLoggingInterceptorController.createForm()"));
    assertThat(startTime, notNullValue());
}