RasaResourceAvailabilityStatusChecker implements ResourceAvailabilityStatusChecker { @Override public Map<String, CheckedLink> getLinkStatusForRefs(Stream<String> hrefs) throws IOException { try { return checkedLinkResource.get(hrefs.collect(Collectors.toSet()), Optional.empty()); } catch (SQLException ex) { throw new IOException("Could not retrieve link status", ex); } } RasaResourceAvailabilityStatusChecker(CheckedLinkResource checkedLinkResource); @Override Map<String, CheckedLink> getLinkStatusForRefs(Stream<String> hrefs);  }
@Test public void testGetLinkStatusForRefs() throws IOException { System.out.println("getLinkStatusForRefs"); Stream<String> hrefs = Stream.of("http: Map<String, CheckedLink> result = instance.getLinkStatusForRefs(hrefs); assertEquals(2, result.size()); assertNotNull(result.get("http: assertEquals("http: assertNotNull(result.get("http: assertEquals(200, result.get("http: assertNotNull(result.get("http: assertEquals("http: assertNotNull(result.get("http: assertEquals(404, result.get("http: }