### Question:
Log implements LogSource { public String getRealm () { return realm; } Log();  Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String realm); void trace(Object detail); void trace(Object detail, Object obj); void debug(Object detail); void debug(Object detail, Object obj); void info(Object detail); void info(Object detail, Object obj); void warn(Object detail); void warn(Object detail, Object obj); void error(Object detail); void error(Object detail, Object obj); void fatal(Object detail); void fatal(Object detail, Object obj); LogEvent createLogEvent(String level); LogEvent createLogEvent(String level, Object detail); LogEvent createTrace(); LogEvent createTrace(Object detail); LogEvent createDebug(); LogEvent createDebug(Object detail); LogEvent createInfo(); LogEvent createInfo(Object detail); LogEvent createWarn(); LogEvent createWarn(Object detail); LogEvent createError(); LogEvent createError(Object detail); LogEvent createFatal(); LogEvent createFatal(Object detail); static final String TRACE; static final String DEBUG; static final String INFO; static final String WARN; static final String ERROR; static final String FATAL; }### Answer:
@Test public void testConstructor1() throws Throwable { Log log = new Log(); assertNull(log.getRealm(), "m_log.getRealm()"); }
@Test public void testGetRealm() throws Throwable { String result = Log.getLog("testLogLogName", "testLogRealm").getRealm(); assertEquals("testLogRealm", result, "result"); }