### Question:
SimpleKeyFile implements SecureKeyStore, Configurable, LogSource { @Override public void setLogger (Logger logger, String realm) { this.logger = logger; this.realm = realm; } SimpleKeyFile();  SimpleKeyFile(String keyFileName); void init(String keyFileName); @Override void setLogger(Logger logger, String realm); @Override Logger getLogger(); @Override String getRealm(); @Override void setConfiguration(Configuration cfg); @Override synchronized SecureKey getKey(String alias); @Override synchronized void setKey(String alias, SecureKey secureKey); String getProperty(String alias, String subName); void setProperty(String alias, String subName, String value); @Override Map<String, SecureKey> getKeys();  }### Answer:
@Test public void testSetLogger() throws Throwable { Logger logger = Logger.getLogger("testSimpleKeyFileName"); SimpleKeyFile simpleKeyFile = new SimpleKeyFile(); simpleKeyFile.setLogger(logger, "testSimpleKeyFileRealm"); assertSame(logger, simpleKeyFile.logger, "simpleKeyFile.logger"); assertEquals("testSimpleKeyFileRealm", simpleKeyFile.realm, "simpleKeyFile.realm"); }