final Instant t = Instant.now();
final List<ViewCycleExecutionOptions> cycles = new ArrayList<ViewCycleExecutionOptions>(20);
for (int i = 0; i < 37; i++) {
cycles.add(ViewCycleExecutionOptions.builder().setValuationTime(t.plusSeconds(i)).create());
}
final ViewCycleExecutionSequence sequence = new ArbitraryViewCycleExecutionSequence(cycles);
final ViewExecutionOptions options = ExecutionOptions.of(sequence, EnumSet.of(ViewExecutionFlags.RUN_AS_FAST_AS_POSSIBLE));
final ViewProcessWorkerContext context = Mockito.mock(ViewProcessWorkerContext.class);
final SequencePartitioningViewProcessWorker worker = new SequencePartitioningViewProcessWorker(underlying, context, options, Mockito.mock(ViewDefinition.class), 10, 2);
assertTrue(worker.join(4 * Timeout.standardTimeoutMillis()));
assertTrue(worker.isTerminated());