@Test
public void testParseAnonymousServiceAndTrapParent()
{

    List<CheckReference<?>> refs = VirtualCheckExpressionParser.parseParentsExpression("service 'check_sshd', trap 'port_g1/48'");
    assertThat(refs, is(notNullValue()));
    assertThat(refs.size(), is(equalTo(2)));
    assertThat(refs.get(0), is(notNullValue()));
    assertThat(refs.get(0), is(instanceOf(AnonymousService.class)));
    assertThat(refs.get(0), is(hasProperty("name", equalTo("check_sshd"))));
    assertThat(refs.get(1), is(notNullValue()));
    assertThat(refs.get(1), is(instanceOf(AnonymousTrap.class)));
    assertThat(refs.get(1), is(hasProperty("name", equalTo("port_g1/48"))));
}