void () { ParametersList params = new ParametersList(); params.defineProperty("sample", "foo"); params.defineProperty("sample", "bar"); assertEquals(1, params.getProperties().size()); assertEquals("foo", params.getPropertyValue("sample")); params.addProperty("sample", "baz"); assertEquals(1, params.getProperties().size()); assertEquals("baz", params.getPropertyValue("sample")); params.defineProperty("ample.sample", "qux"); assertEquals(2, params.getProperties().size()); params.defineSystemProperty("ParameterListTest.prop"); params.defineSystemProperty("ParameterListTest.missing.prop"); assertNull(params.getPropertyValue("ParameterListTest.prop.value")); assertEquals("my.system.value", params.getPropertyValue("ParameterListTest.prop")); }