@Test
public void testLogMethodTimeWithInfoLoggingDisabled() throws Throwable
{

    // Mock a join point of the method call.
    ProceedingJoinPoint joinPoint = getMockedProceedingJoinPoint(new StopWatchAdviceTest(), StopWatchAdviceTest.class.getDeclaredMethod("mockMethod"));
    // Get the logger and the current logger level.
    LogLevel origLogLevel = getLogLevel("org.finra.herd.core.StopWatchAdvice");
    // Set logging level to OFF.
    setLogLevel("org.finra.herd.core.StopWatchAdvice", LogLevel.OFF);
    // Run the test and reset the logging level back to the original value.
    try
    {
        // Call the method under test.
        stopWatchAdvice.logMethodTime(joinPoint);
    }
    finally
    {
        setLogLevel("org.finra.herd.core.StopWatchAdvice", origLogLevel);
    }
}