### Question:
FlowSupport { static int loadPrefetchFactor() { int prefetchFactor = Integer.getInteger(PREFETCH_FACTOR_PROP, DEFAULT_PREFETCH_FACTOR); if (prefetchFactor < 0 || prefetchFactor > 100) { prefetchFactor = DEFAULT_PREFETCH_FACTOR; } return prefetchFactor; } private  FlowSupport(); static IllegalArgumentException illegalRequest(); static int prefetch(); static int prefetchThreshold(); static long getAndAddDemand(Object owner, VarHandle demand, long n); static long subtractAndGetDemand(Object owner, VarHandle demand, long n); static final Flow.Subscription NOOP_SUBSCRIPTION; static final Executor SYNC_EXECUTOR; }### Answer:
@Test void loadPrefetchFactor_canSetPrefetchFactor() { for (int i : List.of(0, 75, 100)) { System.setProperty("com.github.mizosoft.methanol.flow.prefetchFactor", Integer.toString(i)); assertEquals(i, FlowSupport.loadPrefetchFactor()); } }
@Test void loadPrefetchFactor_usesDefaultOnNegativeValue() { System.setProperty("com.github.mizosoft.methanol.flow.prefetchFactor", "-1"); assertEquals(50, FlowSupport.loadPrefetchFactor()); }
@Test void loadPrefetchFactor_usesDefaultOnNonPercentageValue() { System.setProperty("com.github.mizosoft.methanol.flow.prefetchFactor", "101"); assertEquals(50, FlowSupport.loadPrefetchFactor()); }
@Test void loadPrefetchFactor_usesDefaultOnNonIntegerValue() { System.setProperty("com.github.mizosoft.methanol.flow.prefetchFactor", "12.123f"); assertEquals(50, FlowSupport.loadPrefetchFactor()); }