### Question:
RedirectMapModel { public List<MapEntry> getInvalidEntries() throws IOException { log.trace("getInvalidEntries"); List<MapEntry> invalidEntries = new ArrayList<>(); if (redirects != null) { List<MapEntry> entries = getEntries(0); invalidEntries.addAll(entries.stream().filter(e -> !e.isValid()).collect(Collectors.toList())); log.debug("Found {} invalid entries", invalidEntries.size()); } return invalidEntries; }  List<MapEntry> getEntries(long id); List<MapEntry> getInvalidEntries(); String getRedirectMap(); static final String MAP_FILE_NODE; }### Answer:
@Test public void testGetInvalidEntries() throws IOException { log.info("testGetInvalidEntries"); List<MapEntry> mapEntries = model.getInvalidEntries(); log.info("Asserting that the invalid results are found"); assertNotNull(mapEntries); assertEquals(1, mapEntries.size()); assertEquals("/vanity 2", mapEntries.get(0).getSource()); log.info("Test successful!"); }