public class ParallelRecompilationViewProcessWorkerFactoryTest {
public void testIgnoreValidity() {
final ViewProcessWorkerFactory underlying = Mockito.mock(ViewProcessWorkerFactory.class);
final ViewProcessWorkerContext context = Mockito.mock(ViewProcessWorkerContext.class);
final ViewDefinition viewDefinition = Mockito.mock(ViewDefinition.class);
final ParallelRecompilationViewProcessWorkerFactory factory = new ParallelRecompilationViewProcessWorkerFactory(underlying);
factory.setDelegate(factory);
final ViewExecutionOptions options = new ExecutionOptions(new InfiniteViewCycleExecutionSequence(), ExecutionFlags.triggersEnabled().awaitMarketData().ignoreCompilationValidity().get());
factory.createWorker(context, options, viewDefinition);
Mockito.verify(underlying, Mockito.only()).createWorker(context, options, viewDefinition);