@Test
void initializedExecutionContext() throws InterruptedException, ComponentLookupException,
    ExecutionContextException
{

    ComponentManager componentMangerMock = Mockito.mock(ComponentManager.class);
    ExecutionContextManager executionContextManagerMock = Mockito.mock(ExecutionContextManager.class);
    Execution executionMock = Mockito.mock(Execution.class);
    Mockito.when(componentMangerMock.getInstance(ExecutionContextManager.class)).thenReturn(
        executionContextManagerMock);
    Mockito.when(componentMangerMock.getInstance(Execution.class)).thenReturn(executionMock);
    Runnable runnableMock = Mockito.mock(Runnable.class);
    Thread thread = new Thread(new ExecutionContextRunnable(runnableMock, componentMangerMock));
    thread.start();
    thread.join(10000);
    verify(executionContextManagerMock).initialize(any(ExecutionContext.class));
    verify(executionMock).removeContext();
    verify(runnableMock).run();
}