@Test
public void testReadTimeoutAndFactory() {

  SessionAgent.readArguments("timeout=200,provider=redis");
  assertEquals("200", System.getProperty(SessionAgent.SESSION_TIMEOUT));
  assertEquals("timeout=200,provider=redis", System.getProperty(SessionAgent.REPOSITORY_CONF_PROPERTY));
  assertEquals("redis", System.getProperty(SessionAgent.SESSION_FACTORY));
  assertNull(System.getProperty(SessionAgent.SESSION_DISTRIBUTABLE));
  assertNull(System.getProperty(SessionAgent.SESSION_MANAGEMENT_DISABLED));
}