@Test
public void should_provideParentOfType() {

    assertThat(st.getParent(ef2, EventType.EXECUTION_START), is(equalTo((Event) es2)));
    assertThat(st.getParent(ef2, EventType.EXECUTION_FINISH), is(nullValue()));
    assertThat(st.getParent(tstf2, EventType.EXECUTION_START), is(equalTo((Event) es2)));
    assertThat(st.getParent(tstf2, EventType.TEST_SUITE_START), is(equalTo((Event) tss2)));
    assertThat(st.getParent(ef1, EventType.EXECUTION_START), is(equalTo((Event) es1)));
}