}
public static TaskOperationProtocol getSimpleAcknowledgingTaskmanager() throws Exception {
TaskOperationProtocol top = mock(TaskOperationProtocol.class);
when(top.submitTask(any(TaskDeploymentDescriptor.class))).thenAnswer(new Answer<TaskOperationResult>() {
@Override
public TaskOperationResult answer(InvocationOnMock invocation) {
final TaskDeploymentDescriptor tdd = (TaskDeploymentDescriptor) invocation.getArguments()[0];
return new TaskOperationResult(tdd.getExecutionId(), true);
}