### Question:
SimpleLogSource implements LogSource { public Logger getLogger() { return logger; } SimpleLogSource();  SimpleLogSource(Logger logger, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setRealm(String realm); void info(String detail); void info(String detail, Object obj); void warning(String detail); void warning(String detail, Object obj); void error(String detail); void error(String detail, Object obj);  }### Answer:
@Test public void testGetLogger() throws Throwable { Logger logger = new Logger(); SimpleLogSource bSHTransactionParticipant = new BSHTransactionParticipant(); bSHTransactionParticipant.setLogger(logger, "testSimpleLogSourceRealm"); Logger result = bSHTransactionParticipant.getLogger(); assertSame(logger, result, "result"); }