@Test
public void testParseStreamDefaultSession1000() throws IOException {

  String webXml = Descriptors.create(WebAppDescriptor.class).version("3.0").createSessionConfig().sessionTimeout(1000)
      .up().exportAsString();
  try (ByteArrayInputStream bais = new ByteArrayInputStream(webXml.getBytes("UTF-8"))) {
    SessionConfiguration sessionConfiguration = new SessionConfiguration();
    WebXmlParser.parseStream(sessionConfiguration, bais);
    assertEquals(1000, sessionConfiguration.getMaxInactiveInterval());
  }
}