}
@Test
public void startsParameterizedWork() throws WorkException
{
final Work work = mock(Work.class);
long startTimeout = 0;
ExecutionContext execContext = mock(ExecutionContext.class);
WorkListener workListener = mock(WorkListener.class);
doAnswer(new Answer()
{
@Override
public Object answer(InvocationOnMock invocation) throws Throwable
{
work.run();
return null;
}
}).when(delegateWorkManager).startWork(Matchers.<Work>any(), eq(startTimeout), eq(execContext), Matchers.<WorkListener>any());
trackingWorkManager.startWork(work, startTimeout, execContext, workListener);