@Test
void shouldDefaultCategoriesToResults() {

    final TestResult first = new TestResult()
            .setName("first")
            .setStatus(Status.FAILED)
            .setStatusMessage("A");
    final TestResult second = new TestResult()
            .setName("second")
            .setStatus(Status.BROKEN)
            .setStatusMessage("B");
    CategoriesPlugin.addCategoriesForResults(createSingleLaunchResults(first, second));
    assertThat(first.getExtraBlock(CATEGORIES, new ArrayList<Category>()))
            .hasSize(1)
            .extracting(Category::getName)
            .containsExactlyInAnyOrder(FAILED_TESTS.getName());
    assertThat(second.getExtraBlock(CATEGORIES, new ArrayList<Category>()))
            .hasSize(1)
            .extracting(Category::getName)
            .containsExactlyInAnyOrder(BROKEN_TESTS.getName());
}