ConfigurationParameters implements Map<String, Object> { @Override public Object get(Object key) { return options.get(key); } private  ConfigurationParameters(); private  ConfigurationParameters(@NotNull Map<String, ?> options); @NotNull static ConfigurationParameters of(@NotNull ConfigurationParameters... params); @NotNull static ConfigurationParameters of(@NotNull Properties properties); @NotNull static ConfigurationParameters of(@NotNull Dictionary<String, Object> properties); @NotNull static ConfigurationParameters of(@NotNull Map<?, ?> map); @NotNull static ConfigurationParameters of(@NotNull String key, @NotNull Object value); @NotNull static ConfigurationParameters of(@NotNull String key1, @NotNull Object value1,
                                             @NotNull String key2, @NotNull Object value2); boolean contains(@NotNull String key); @Nullable T getConfigValue(@NotNull String key, @Nullable T defaultValue,
                                @Nullable Class<T> targetClass); @NotNull T getConfigValue(@NotNull String key, @NotNull T defaultValue); @Override int size(); @Override boolean isEmpty(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); @Override Object get(Object key); @Override Object put(String key, Object value); @Override Object remove(Object key); @Override void putAll(@NotNull Map<? extends String, ?> m); @Override void clear(); @NotNull @Override Set<String> keySet(); @NotNull @Override Collection<Object> values(); @NotNull @Override Set<Entry<String,Object>> entrySet(); static final ConfigurationParameters EMPTY; }
@Test public void testGet() { TestObject value = new TestObject("name"); ConfigurationParameters options = ConfigurationParameters.of("test", value); assertSame(value, options.get("test")); }