@Test
public void should_filter_out_one_certificate_by_asn() {

    final List<ValidatedRpkiObjects.RouterCertificate> certificates = Arrays.asList(CERTIFICATE_1, CERTIFICATE_2);
    final List<BgpSecFilter> filters = Collections.singletonList(new BgpSecFilter(10L, ASN_2, null, null));
    final Stream<ValidatedRpkiObjects.RouterCertificate> s = bgpSecFilterService.filterCertificates(certificates.stream(), filters);
    assertEquals(Collections.singletonList(CERTIFICATE_1), s.collect(Collectors.toList()));
}