public function testIntegerTypesAreUnmarshalled()
{
$object = new DomainObject(array('type' => 'Llama'));
$object->save();
$llamaById = DomainObject::byId(1);
$this->assertSame($llamaById->id, 1);
$this->assertSame($llamaById->type, 'Llama');
}