Arrays.sort(reference);
VMWrapper newVM = new VMWrapper(task);
try {
AbstractReturnType<?> returned = newVM.call(); // run the task.
assertArrayEquals("Result different from reference", reference,
(int[])returned.getResult());
} catch (Exception e) {
fail("Error executing new Virtual Machine");
}