### Question:
CoreProfile { public void storeTo(Properties properties) { if (properties == null) { throw new IllegalArgumentException("properties must not be null"); } LOG.debug("Saving core profile"); PropertiesUtil.checkAbsentKeyPrefix(properties, KEY_PREFIX); properties.setProperty(KEY_PREFIX + KEY_MAX_PROCESSES, String.valueOf(getMaxProcesses())); } CoreProfile(int maxProcesses); int getMaxProcesses(); @Deprecated static CoreProfile loadFrom(Properties properties, ClassLoader loader); static CoreProfile loadFrom(Properties properties, ProfileContext context); void storeTo(Properties properties); static void removeCorrespondingKeys(Properties properties); static final String KEY_PREFIX; @Deprecated
    static final String KEY_MAX_THREADS; static final String KEY_MAX_PROCESSES; static final int DEFAULT_MAX_PROCESSES; }### Answer:
@Test public void storeTo() { Properties p = new Properties(); p.setProperty(CoreProfile.KEY_PREFIX + CoreProfile.KEY_MAX_PROCESSES, "10"); CoreProfile profile = CoreProfile.loadFrom(p, ProfileContext.system(getClass().getClassLoader())); Properties restored = new Properties(); profile.storeTo(restored); assertThat(restored, is(p)); }