function testDestroyBy()
 {
     $user = new TestUser();
     $user->destroyBy('username', 'haakon');
     $this->assertEqual(SimpleDbAdapterWrapper::$adapter->lastSQL(), 'DELETE FROM users WHERE id = 1');
 }