After setting up a small road pricing scenario and getting odd results, I started looking into the use of TollFactor. I first checked the integration test RunRoadPricingUsingTollFactorExampleIT and it seems that, although it is running, it is not really doing anything.
More specifically, the TollFactor implementation has a single method, getTollFactor(...), which is implemented in RunRoadPricingUsingTollFactorExample on line 61. If you put a breakpoint on either line 62, or even in RoadPricingSchemeUsingTollFactor on line 90, where the toll cost is supposed to be checked... it is never called. But the integration test also does not crash.
I'll try and look into it, but if anyone has an intuition, please comment.
Hmm, it seems the integration test uses a cordon type toll. Still, the TollFactor should be taken into account.