public function throwsWhenTryingToGiveNonexistentFieldsWhileConstructing()
{
$this->factory->defineEntity('SpaceShip', array('name' => 'Alpha'));
$self = $this;
$this->assertThrows(function () use($self) {
$self->factory->get('SpaceShip', array('pieType' => 'blueberry'));
});
}