@Test(expected = NumberFormatException.class)
public void testParseStreamDefaultSessionAbsent() throws IOException {

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