### Question:
TaskunConfig { public void setNamedServers(Map<String, String> namedServers) { this.namedServers = namedServers; }  void setEnableInvokingScheduler(boolean enableInvokingScheduler); void setEnableLoggingForEachCrondInvocation(boolean enableLoggingForEachCrondInvocation); void setNamedServers(Map<String, String> namedServers); void putNamedServer(String name, String hostname); void removeNamedServer(String name); String getNamedServerHostname(String name); void setLogImplClass(Class<T> logImplClass); Class<? extends TaskunLog> getLogImplClass(); public boolean enableInvokingScheduler; public boolean enableLoggingForEachCrondInvocation; public Map<String, String> namedServers; public Class<? extends TaskunLog> logImplClass; }### Answer:
@Test public void setNamedServers_A$Map() throws Exception { Map<String, String> namedServers = new HashMap<String, String>(); namedServers.put("hoge", "hogehoge"); TaskunConfig target = new TaskunConfig(); assertFalse(target.namedServers.containsKey("hoge")); target.setNamedServers(namedServers); assertTrue(target.namedServers.containsKey("hoge")); }