public function testGetLifeCycleHistory()
 {
     $sim = $this->simMapper->findOneById("00000000000000000015", self::MASTER_ORG_ID);
     //$sim = $this->simMapper->findOneById("00000000000000000000000000000001","master-MASTER:0000000000000000000000001");
     $data = $this->simMapper->getLifeCycleHistory($sim);
     $this->assertInternalType('array', $data);
     $this->assertNotEmpty($data);
     $this->assertArrayHasKey('time', $data[0]);
     $this->assertArrayHasKey('automatic', $data[0]);
     $this->assertArrayHasKey('state', $data[0]);
     $this->assertArrayHasKey('reason', $data[0]);
     $this->assertArrayHasKey('user', $data[0]);
 }
 public function testGetLifeCycleHistoryEmpty()
 {
     $sim = new SimModel();
     $sim->setId('00000000000000000000000000000002');
     $from = '2011-07-15';
     $until = '2011-08-20';
     $this->assertInstanceOf('\\Application\\Model\\SimModel', $sim);
     $data = $this->simMapper->getLifeCycleHistory($sim, $from, $until);
     $this->assertInternalType('array', $data);
     $this->assertEmpty($data);
 }