private void waitForCompletionAndShutdown(final ViewProcessorImpl vp, final ViewClient client, final ViewProcessorTestEnvironment env) throws InterruptedException {
client.waitForCompletion();
// Note: notification of client completion happens before the client computation thread terminates and performs its postRunCycle - must wait for this to happen
final ViewProcessWorker worker = env.getCurrentWorker(env.getViewProcess(vp, client.getUniqueId()));
client.shutdown();
worker.join();
}
@Test
public void testSuspend_viewExists() throws InterruptedException, ExecutionException {
final ViewProcessorTestEnvironment env = new ViewProcessorTestEnvironment();