void () { ParametersList params = new ParametersList(); params.addProperty("foo.null", null); params.addProperty("foo.empty", ""); params.addProperty("foo.value.less"); params.defineProperty("def.null", null); params.defineProperty("def.empty", ""); params.defineProperty("foo.value.less", "anyway"); params.addNotEmptyProperty("empty.null", null); params.addNotEmptyProperty("empty.empty", ""); params.addNotEmptyProperty("empty.spaces", " \t\t\t"); assertTrue(params.hasProperty("foo.value.less")); assertTrue(params.hasProperty("foo.empty")); assertEquals("{foo.empty=, foo.value.less=, def.empty=}", params.getProperties().toString()); }