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