public function testFindByRouteParam() { $routeParams = ['varchar' => 'foo', 'hash' => 'bar']; $realEntity = $this->getFactory(TestEntity::class)->customize($routeParams)->create(); $testEntity = new TestEntity(); $foundEntity = $testEntity->findByRouteParams($routeParams); $this->assertEquals($realEntity->entity_id, $foundEntity->entity_id); }