@Test
public void testExternalEntity() throws IOException {

  try (ByteArrayInputStream bais = new ByteArrayInputStream(externalEntity.getBytes("UTF-8"))) {
    SessionConfiguration sessionConfiguration = new SessionConfiguration();
    sessionConfiguration.setDistributable(false);
    WebXmlParser.parseStream(sessionConfiguration, bais);
    assertEquals(1800, sessionConfiguration.getMaxInactiveInterval());
    assertFalse(sessionConfiguration.isDistributable());
  }
}