public function testAccountFactoryReturnsAccountWithMatchingIdentity() { $identity = $this->test_email; $acc = AccountFactory::findByIdentity($identity); $this->assertEquals($identity, $acc->getIdentity()); }