@Test
void shouldNotMarkLatestAsFlakyIfRetriesSkipped() {

    String historyId = UUID.randomUUID().toString();
    List<LaunchResults> launchResultsList = createSingleLaunchResults(
            createTestResult(FIRST_RESULT, historyId, 1L, 9L).setStatus(Status.SKIPPED),
            createTestResult(SECOND_RESULT, historyId, 11L, 19L).setStatus(Status.PASSED),
            createTestResult(LAST_RESULT, historyId, 12L, 20L).setHidden(true).setStatus(Status.PASSED)
    );
    retryPlugin.aggregate(null, launchResultsList, null);
    Set<TestResult> results = launchResultsList.get(0).getAllResults();
    assertThat(results)
            .filteredOn(TestResult::isHidden)
            .extracting(TestResult::getName)
            .containsExactlyInAnyOrder(FIRST_RESULT, LAST_RESULT);
    assertThat(results)
            .filteredOn(result -> !result.isHidden())
            .extracting(TestResult::getName, TestResult::isFlaky)
            .containsExactlyInAnyOrder(tuple(SECOND_RESULT, false));
}