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();
assertThreadReachesState(recalcThread, Thread.State.TIMED_WAITING);
underlyingProvider.addValue(ViewProcessorTestEnvironment.getPrimitive1(), 123d);
underlyingProvider.addValue(ViewProcessorTestEnvironment.getPrimitive2(), 456d);
recalcThread.join();
resultListener.assertCycleCompleted(TIMEOUT);
final Map<String, Object> resultValues = new HashMap<String, Object>();
final ViewComputationResultModel result = client.getLatestResult();
final ViewTargetResultModel targetResult = result.getTargetResult(ViewProcessorTestEnvironment.getPrimitiveTarget());