// Then update properties which can only be changed when datasource is in disabled state
Configuration configuration = pluginContainer.getConfigurationManager().loadResourceConfiguration(
datasourceTestResource.getId());
assertFalse(Boolean.parseBoolean(configuration.getSimpleValue("enabled")), "");
// Make a working copy
configuration = configuration.deepCopy(false);
// Change values
PropertySimple propertySimple = configuration.getSimple("prepared-statements-cache-size");
Long currentCacheSize = propertySimple.getLongValue();
long newCacheSize = currentCacheSize == null ? 40 : currentCacheSize + 1;
propertySimple.setStringValue(String.valueOf(newCacheSize));