StoredConfigurationModifier { public void writeSetting( final PwmSetting setting, final String profileID, final StoredValue value, final UserIdentity userIdentity ) throws PwmUnrecoverableException { writeSettingAndMetaData( setting, profileID, value, new ValueMetaData( Instant.now(), userIdentity ) ); } private  StoredConfigurationModifier( final StoredConfiguration storedConfiguration ); static StoredConfigurationModifier newModifier( final StoredConfiguration storedConfiguration ); StoredConfiguration newStoredConfiguration(); void writeSetting(
            final PwmSetting setting,
            final String profileID,
            final StoredValue value,
            final UserIdentity userIdentity
    ); void writeConfigProperty(
            final ConfigurationProperty propertyName,
            final String value
    ); void resetLocaleBundleMap( final PwmLocaleBundle pwmLocaleBundle, final String keyName ); void resetSetting( final PwmSetting setting, final String profileID, final UserIdentity userIdentity ); void deleteKey( final StoredConfigItemKey key ); void writeLocaleBundleMap(
            final PwmLocaleBundle pwmLocaleBundle,
            final String keyName,
            final Map<String, String> localeMap
    ); void copyProfileID(
            final PwmSettingCategory category,
            final String sourceID,
            final String destinationID,
            final UserIdentity userIdentity
    ); void setPassword( final String password );  }
@Test public void testWriteSetting() throws PwmUnrecoverableException { final StoredConfiguration storedConfiguration = StoredConfigurationFactory.newConfig(); final StoredConfigurationModifier modifier = StoredConfigurationModifier.newModifier( storedConfiguration ); modifier.writeSetting( PwmSetting.NOTES, null, new StringValue( "notes test" ), null ); final StoredConfiguration newConfig = modifier.newStoredConfiguration(); final String notesText = ( ( String ) newConfig.readSetting( PwmSetting.NOTES, null ).toNativeObject() ); Assert.assertEquals( notesText, "notes test" ); }