public function getTestObject()
{
$objects = $this->prepareTestObjects();
foreach ($objects as $object) {
if ($object instanceof $this->test_object_class) {
return $object;
}
}
throw new Exception("Test object not found for {$this->test_object_class} class");
}