@Test
public void testInvalidSequence() throws Exception {

  try {
    XMLUtils.unmangleXmlString("\\000g;foo");
    Assert.fail("expected an unmangling error");
  } catch (UnmanglingError e) {
    // pass through
  }
  try {
    XMLUtils.unmangleXmlString("\\0");
    Assert.fail("expected an unmangling error");
  } catch (UnmanglingError e) {
    // pass through
  }
}