@Test public void testDuplicate() throws IOException { Props p = new Props(); loadProps(p, "test-dupl.props"); assertEquals("three", p.getValue("foo")); assertEquals("everywhere", p.getValue("bar", "prof")); p = new Props(); p.setAppendDuplicateProps(true); loadProps(p, "test-dupl.props"); assertEquals("one,two,three", p.getValue("foo")); assertEquals("here,there,everywhere", p.getValue("bar", "prof")); }