}
private TestCase testCase(String name, TestCase.Status status, Long durationInMs, String testPlanKey, String testPlanLongName) {
TestCase testCase = mock(TestCase.class);
when(testCase.name()).thenReturn(name);
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);