public function testGetObject_StringClass()
{
$structure = new Structure();
$structure->set('param1', 'value1');
$structure->set('param2', array('a' => 'a', 'b' => 'b'));
// get unexited key
$this->assertEquals(null, $structure->getObject('unexisted-param', '\\Sokil\\Mongo\\StructureWrapper'));
// get object
$structureWrapper = $structure->getObject('param2', '\\Sokil\\Mongo\\StructureWrapper');
// tests
$this->assertInstanceOf('\\Sokil\\Mongo\\StructureWrapper', $structureWrapper);
$this->assertEquals('b', $structureWrapper->get('b'));
$this->assertEquals('def-c', $structureWrapper->get('c'));
}