@Issue("587")
@Issue("572")
@Test
void shouldSortByStartTimeAsc() {

    final TestResult first = new TestResult()
            .setName("first")
            .setTime(new Time().setStart(10L));
    final TestResult second = new TestResult()
            .setName("second")
            .setTime(new Time().setStart(100L));
    final TestResult third = new TestResult()
            .setName("third")
            .setTime(new Time().setStart(50L));
    final TestResult timeless = new TestResult()
            .setName("timeless");
    final LaunchResults results = new DefaultLaunchResults(
            new HashSet<>(Arrays.asList(first, second, third, timeless)),
            Collections.emptyMap(),
            Collections.emptyMap()
    );
    final PackagesPlugin packagesPlugin = new PackagesPlugin();
    final Tree<TestResult> tree = packagesPlugin.getData(singletonList(results));
    assertThat(tree.getChildren())
            .extracting("name")
            .containsExactly("timeless", "first", "third", "second");
}