### Question:
PageNameSanitizer { public static void sanitizePageName(final Step step) { if (step == null || step.getPage() == null) { return; } step.getPage().setName(sanitize(step.getPage().getName())); }  static void sanitizePageNames(final List<Step> steps); static void sanitizePageName(final Step step);  }### Answer:
@Test void givenStepWithIllegalPageName_sanitizingPageNames_replacesIllegalCharacters() { Step step = getStepWithIllegalPageName(); PageNameSanitizer.sanitizePageName(step); assertEquals(SANITIZED, step.getPage().getName()); }