SystemPropertiesConfiguration extends AbstractConfiguration implements Configuration { @Override public void define(final String key, final Object value) { throw new UnsupportedOperationException("JVM Properties could NOT be changed"); }  @SuppressWarnings("unchecked") @Override Map<String, Object> asMap(); @Override void define(final String key, final Object value); @Override Configuration getSubconfiguration(final String key); @Override Object getValue(final String key); @Override void remove(final String key);  }
@Test(expected = UnsupportedOperationException.class) public void testDefine() { final SystemPropertiesConfiguration configuration = new SystemPropertiesConfiguration(); configuration.define(randomUUID().toString(), randomUUID().toString()); }