public function createAccountWithPasswordCreatesANewAccountWithTheGivenIdentifierPasswordRolesAndProviderName()
{
$factory = new AccountFactory();
$actualAccount = $factory->createAccountWithPassword('username', 'password', ['Neos.Flow:Administrator', 'Neos.Flow:Customer'], 'OtherProvider');
$this->assertEquals('username', $actualAccount->getAccountIdentifier());
$this->assertEquals('OtherProvider', $actualAccount->getAuthenticationProviderName());
$this->assertTrue($actualAccount->hasRole($this->policyService->getRole('Neos.Flow:Administrator')));
$this->assertTrue($actualAccount->hasRole($this->policyService->getRole('Neos.Flow:Customer')));
}