@Test(expected = DuplicateException.class)
public void testDuplicate() throws Exception {

    PropertyUtil.addProperty("workerCount", "30");
    throw new IllegalStateException("Should not get this far");
}