### Question:
DaemonConfiguration { public int getTestThreadsCountCalculated() { int threads = getTestThreadsCount(); if (threads < 1) { return Runtime.getRuntime().availableProcessors(); } else { return threads; } } DaemonConfiguration();   DaemonConfiguration(DaemonConfigurationBuilder src); DaemonConfigurationBuilder melt(); String[] toProgramArgs(); Properties toSystemProperties(); Path getJumiHome(); Path getDaemonDir(); int getLauncherPort(); int getTestThreadsCountCalculated(); int getTestThreadsCount(); boolean getLogActorMessages(); long getStartupTimeout(); long getIdleTimeout(); static final DaemonConfiguration DEFAULTS; static final String JUMI_HOME; static final String DAEMON_DIR; static final String LAUNCHER_PORT; static final SystemProperty TEST_THREADS_COUNT; static final SystemProperty IDLE_TIMEOUT; static final SystemProperty STARTUP_TIMEOUT; static final SystemProperty LOG_ACTOR_MESSAGES; static final List<SystemProperty> PROPERTIES; }### Answer:
@Test public void test_threads_count_can_be_changed() { builder.setTestThreadsCount(10); DaemonConfiguration config = configuration(); assertThat(config.getTestThreadsCountCalculated(), is(10)); }
@Test public void test_threads_count_defaults_to_the_number_of_CPUs() { DaemonConfiguration config = configuration(); assertThat(config.getTestThreadsCountCalculated(), is(Runtime.getRuntime().availableProcessors())); }