when(testCase.status()).thenReturn(status);
when(testCase.durationInMs()).thenReturn(durationInMs);
TestPlan testPlan = mock(TestPlan.class);
when(testPlan.component()).thenReturn(new ComponentDto().setKey(testPlanKey).setLongName(testPlanLongName));
when(testCase.testPlan()).thenReturn(testPlan);
return testCase;
}
}