public void testLoadInvalid() throws Exception { try { Properties p = PropertiesUtil.loadProperties("invalidTest.properties"); fail("Expected: IllegalArgumentException"); } catch (IllegalArgumentException e) { assertEquals( "Cannot override non-overrideable property flibble = flobble with new value flooble", e.getMessage()); } }