public function testGetAttribute()
{
$login = new Login('username', 'password', true);
$login->setAttribute('aname', 'avalue');
$login->setAttribute('bname', 'bvalue');
$this->assertSame('avalue', $login->getAttribute('aname'));
$this->assertSame('bvalue', $login->getAttribute('bname'));
$login->setAttribute('aname', 'cvalue');
$this->assertSame('cvalue', $login->getAttribute('aname'));
$this->assertNull($login->getAttribute('doesnt exist'));
}