StringOptions { public void setOption(String key, String value) { LOG.info("Setting option %s to %s", key, value); Option<String> option = getOption(key); option.setValue(value); }  Option<String> getOption(String key); void setOption(String key, String value);  }
@Test(groups = "fast") public void testSetOptionPropgates() throws Exception { Assert.assertNull(option1.getValue()); Assert.assertNull(option2.getValue()); options.setOption("test_option", "foofoo"); Assert.assertEquals(option1.getValue(), "foofoo"); Assert.assertEquals(option2.getValue(), "foofoo"); }