private static MemcachedBackupSession createSession(
     final MemcachedBackupSessionManager manager, final String id) {
   final MemcachedBackupSession session = manager.createEmptySession();
   session.setId(id);
   session.setValid(true);
   return session;
 }
  private static MemcachedBackupSessionManager createManager() {
    final MemcachedBackupSessionManager manager = new MemcachedBackupSessionManager();

    final StandardContext container = new StandardContext();
    manager.setContainer(container);

    final WebappLoader webappLoader =
        new WebappLoader() {
          @Override
          public ClassLoader getClassLoader() {
            return Thread.currentThread().getContextClassLoader();
          }
        };
    manager.getContainer().setLoader(webappLoader);

    return manager;
  }