@Test
public void toAndFromIgnoringResource() {

    EntityFilter entityFilter = new SimpleEntityFilter(ROMEO_CAR, EntityFilter.Type.TO_AND_FROM, true);
    InMemoryEntityFilter tested = new InMemoryEntityFilter(entityFilter);
    assertTrue(tested.test(romeoSidewalkToRomeoCar));
    assertFalse(tested.test(romeoSidewalkToJulietBalcony));
}