@Test(expected = IllegalStateException.class)
public void testInvalidDescriptor() throws IOException {

  try (ByteArrayInputStream bais = new ByteArrayInputStream(invalidDescriptor.getBytes("UTF-8"))) {
    SessionConfiguration sessionConfiguration = new SessionConfiguration();
    WebXmlParser.parseStream(sessionConfiguration, bais);
  }
}