@Test
public void testWithSessionConfig() throws IOException {

  try (ByteArrayInputStream bais = new ByteArrayInputStream(withSessionConfig.getBytes("UTF-8"))) {
    SessionConfiguration sessionConfiguration = new SessionConfiguration();
    WebXmlParser.parseStream(sessionConfiguration, bais);
    assertEquals("COOKIE", sessionConfiguration.getSessionTracking()[0]);
    assertEquals("true", sessionConfiguration.getAttribute(CookieSessionTracking.COOKIE_HTTP_ONLY_PARAMETER, null));
    assertEquals("false", sessionConfiguration.getAttribute(CookieSessionTracking.SECURE_COOKIE_PARAMETER, null));
    assertEquals("/test", sessionConfiguration.getAttribute(CookieSessionTracking.COOKIE_CONTEXT_PATH_PARAMETER, null));
  }
}