class Settings implements Serializable {

    Object put(String key, @Nullable Object value) {
        Preconditions.checkNotNull(key);
        return put("<direct call>", key, value);
    }

}

class SettingsTest {

    @Test
    public void testSettingsModule() {

        Settings settings = new Settings();
        settings.put("foo", "bar");
        Bootstrap bootstrap = new Bootstrap(settings);
        WhatsYourFoo instance = bootstrap.getInjector().getInstance(WhatsYourFoo.class);
        Assert.assertEquals("bar", instance.foo);
    }

}