adapt mock in test and clean code

8 jobs for 177-generalize-pedestriandensitycountingprocessor in 139 minutes and 17 seconds (queued for 10 minutes and 40 seconds)
Status Job ID Name Coverage
  Unit Test
passed #509636
linux
run_unit_tests_on_linux

00:01:19

20.0%
passed #509637
windows
run_unit_tests_on_windows

00:02:45

20.0%
 
  Integration Test
passed #509638
linux
run_scenario_files_on_linux

01:09:00

passed #509639
windows
run_scenario_files_on_windows

01:13:45

 
  Seed Test
passed #509640
linux
run_seed_test_on_linux

00:41:49

passed #509641
windows
run_seed_test_on_windows

01:01:25

 
  Deploy
manual #509642
linux allowed to fail manual
deploy_branch_on_linux
manual #509643
windows allowed to fail manual
deploy_branch_on_windows