public function testLoadObjectState()
{
$state = $this->repository->getObjectStateService()->loadObjectState(1);
$this->assertInstanceOf('\\eZ\\Publish\\API\\Repository\\Values\\ObjectState\\ObjectState', $state);
$this->assertPropertiesCorrect(array('id' => 1, 'identifier' => 'not_locked', 'priority' => 0, 'defaultLanguageCode' => 'eng-US', 'languageCodes' => array('eng-US'), 'names' => array('eng-US' => 'Not locked'), 'descriptions' => array('eng-US' => '')), $state);
$this->assertInstanceOf('\\eZ\\Publish\\API\\Repository\\Values\\ObjectState\\ObjectStateGroup', $state->getObjectStateGroup());
$this->assertEquals(2, $state->getObjectStateGroup()->id);
}