public function testGetAll()
 {
     $at = getenv("BB_ACCESS_TOKEN");
     $objects = AccountNature::getAll($at);
     $this->assertContainsOnlyInstancesOf('\\ClausConrad\\BillysBilling\\AccountNature', $objects, 'Get all returns only instances of this object.');
     return $objects;
 }
 public function testDeleteById()
 {
     $at = getenv("BB_ACCESS_TOKEN");
     $accountNatures = AccountNature::getAll($at);
     $accountNature = $accountNatures[0];
     $object = new AccountGroup($at, 'newAccountGroupName', $accountNature->id);
     $object->save();
     AccountGroup::_deleteById($at, $object->id);
 }