}
@Test
public void testSetLogger() throws Throwable {
Logger logger = new Logger();
SimpleLogSource bSHTransactionParticipant = new BSHTransactionParticipant();
bSHTransactionParticipant.setLogger(logger, "testSimpleLogSourceRealm");
assertEquals("(BSHTransactionParticipant) bSHTransactionParticipant.realm", "testSimpleLogSourceRealm",
((BSHTransactionParticipant) bSHTransactionParticipant).realm);
assertSame("(BSHTransactionParticipant) bSHTransactionParticipant.logger", logger,
((BSHTransactionParticipant) bSHTransactionParticipant).logger);
}