@Override
  @After
  public void tearDown() throws Exception {
    super.tearDown();

    // delete the contents of the data-store
    MockUserDAO mockUserDAO = (MockUserDAO) DAOLocator.locate(UserDAO.class);
    mockUserDAO.resetStore();

    AuthServiceRegistry.getInstance().reset();
    MockAuthDAORegistry.getInstance().reset();
  }
  @Override
  @Before
  public void setUp() throws Exception {
    super.setUp();

    AuthServiceRegistry.getInstance()
        .registerAllInterfaces(); // register default auth services. The default persistent services
                                  // use what ever DAOs are registered (see below).
    MockAuthDAORegistry.getInstance()
        .registerAllInterfaces(); // register the mock DAOs (which will be used by the persistent
                                  // services)
  }