final TestViewResultListener resultListener = new TestViewResultListener();
client.setResultListener(resultListener);
final ViewCycleExecutionOptions cycleExecutionOptions = ViewCycleExecutionOptions.builder().setValuationTime(Instant.now()).setMarketDataSpecification(MarketData.live()).create();
final EnumSet<ViewExecutionFlags> flags = ExecutionFlags.none().awaitMarketData().get();
final ViewExecutionOptions executionOptions = ExecutionOptions.of(ArbitraryViewCycleExecutionSequence.single(cycleExecutionOptions), flags);
client.attachToViewProcess(env.getViewDefinition().getUniqueId(), executionOptions);
resultListener.assertViewDefinitionCompiled(TIMEOUT);
final ViewProcessImpl viewProcess = env.getViewProcess(vp, client.getUniqueId());
final BorrowedThread recalcThread = ((SingleThreadViewProcessWorker) env.getCurrentWorker(viewProcess)).getThread();