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

    usersDataService.deleteAll();
    rolesDataService.deleteAll();

    clearSecurityContext();
  }
  @Before
  @Override
  public void setUp() throws Exception {
    super.setUp();

    passwordEncoder = getFromContext(MotechPasswordEncoder.class);

    usersDataService.deleteAll();
    rolesDataService.deleteAll();

    // authorize
    motechUserService.registerMotechAdmin("admin", "admin", "*****@*****.**", Locale.ENGLISH);

    setUpSecurityContext("admin", "admin", getPermissions());
  }