private MutableTestCase testCase(String name, TestCase.Status status, Long durationInMs, int coveredLines, @Nullable String message, @Nullable String stackTrace) {
MutableTestCase testCase = mock(MutableTestCase.class);
when(testCase.name()).thenReturn(name);
when(testCase.status()).thenReturn(status);
when(testCase.durationInMs()).thenReturn(durationInMs);
when(testCase.countCoveredLines()).thenReturn(coveredLines);
when(testCase.message()).thenReturn(message);
when(testCase.stackTrace()).thenReturn(stackTrace);
return testCase;
}