@Test
public void testGetSingleExecution() {
Execution mockExecution = MockProvider.createMockExecution();
ExecutionQuery sampleExecutionQuery = mock(ExecutionQuery.class);
when(runtimeServiceMock.createExecutionQuery()).thenReturn(sampleExecutionQuery);
when(sampleExecutionQuery.executionId(MockProvider.EXAMPLE_EXECUTION_ID)).thenReturn(sampleExecutionQuery);
when(sampleExecutionQuery.singleResult()).thenReturn(mockExecution);
given().pathParam("id", MockProvider.EXAMPLE_EXECUTION_ID)
.then().expect().statusCode(Status.OK.getStatusCode())
.body("id", equalTo(MockProvider.EXAMPLE_EXECUTION_ID))