### Question:
RedirectMapModel { public String getRedirectMap() throws IOException { log.debug("Retrieving redirect map from {}", redirectMap); StringBuilder sb = new StringBuilder(); if (redirectMap != null) { log.debug("Loading RedirectMap file from {}", redirectMap); InputStream is = redirectMap.adaptTo(InputStream.class); if (is != null) { sb.append("# Redirect Map File\n"); sb.append(IOUtils.toString(is, StandardCharsets.UTF_8)); } else { log.debug("Unable to get input stream from redirect file: {}", redirectMap); } } else { log.debug("No redirect map specified"); } if (redirects != null) { for (RedirectConfigModel config : redirects) { writeEntries(config, sb); } } else { log.debug("No redirect configurations specified"); } return sb.toString(); }  List<MapEntry> getEntries(long id); List<MapEntry> getInvalidEntries(); String getRedirectMap(); static final String MAP_FILE_NODE; }### Answer:
@Test public void testGetRedirectMap() throws IOException { log.info("testGetInvalidEntries"); String redirectMap = model.getRedirectMap(); log.info("Asserting the expected redirect map found"); assertNotNull(redirectMap); assertFalse(redirectMap.contains("/vanity 2")); assertTrue(redirectMap.contains("/vanity1")); assertTrue(redirectMap.contains("/vanity3")); log.info("Test successful!"); }