public function successfulAuthentication()
{
$this->authenticationToken->_set('credentials', ['username' => 'username', 'password' => 'password']);
$this->persistedUsernamePasswordProvider->authenticate($this->authenticationToken);
$this->assertTrue($this->authenticationToken->isAuthenticated());
$account = $this->accountRepository->findActiveByAccountIdentifierAndAuthenticationProviderName('username', 'myTestProvider');
$this->assertEquals(new \DateTime(), $account->getLastSuccessfulAuthenticationDate());
$this->assertEquals(0, $account->getFailedAuthenticationCount());
}