### Question:
ConfigureUtil { public static void configure(Object obj, Map<String, String> config) { if (obj instanceof Configurable) { ((Configurable)obj).configure(config); } }  static void configure(Object obj, Map<String, String> config);  }### Answer:
@Test public void testConfigure_ConfigurableObject() { ConfigurableObject configurable = new ConfigurableObject(); Map<String, String> params = Maps.newHashMap(); params.put("key", "value"); ConfigureUtil.configure(configurable, params); assertEquals(params, configurable.params); }
@Test public void testConfigure_NotConfigurableObject() { Object o = new Object(); Map<String, String> params = Maps.newHashMap(); params.put("key", "value"); ConfigureUtil.configure(o, params); }