### Question:
PageNameSanitizer { public static void sanitizePageNames(final List<Step> steps) { if (steps == null) { return; } for (Step step : steps) { sanitizePageName(step); } }  static void sanitizePageNames(final List<Step> steps); static void sanitizePageName(final Step step);  }### Answer:
@Test void givenStepListWithIllegalPageNames_sanitizingPageNames_replacesIllegalCharacters() { List<Step> steps = getStepsWithIllegalPageName(); PageNameSanitizer.sanitizePageNames(steps); assertEquals(SANITIZED, steps.get(0).getPage().getName()); assertEquals(SANITIZED, steps.get(1).getPage().getName()); }