source: class XmlSanitizerTest {
  
      @Test
      public void testXmlSanitizer() {
  
target:         boolean valid = XmlSanitizer.isValid("Fritzbox");
          assertEquals("Fritzbox is valid", true, valid);
          System.out.println("Pure ASCII test - passed");
  
          valid = XmlSanitizer.isValid("Fritz Box");
          assertEquals("Spaces are valid", true, valid);
          System.out.println("Spaces test - passed");
  
          valid = XmlSanitizer.isValid("Frützbüx");
          assertEquals("Frützbüx is invalid", false, valid);
          System.out.println("No ASCII test - passed");
  
          valid = XmlSanitizer.isValid("Fritz!box");
          assertEquals("Exclamation mark is valid", true, valid);
          System.out.println("Exclamation mark test - passed");
  
          valid = XmlSanitizer.isValid("Fritz.box");
          assertEquals("Exclamation mark is valid", true, valid);
          System.out.println("Dot test - passed");
  
          valid = XmlSanitizer.isValid("Fritz-box");
          assertEquals("Minus is valid", true, valid);
          System.out.println("Minus test - passed");
  
          valid = XmlSanitizer.isValid("Fritz-box");
          assertEquals("Minus is valid", true, valid);
          System.out.println("Minus test - passed");
      }
  
  }