MockWebApplication calls twice the detach method of cycle. I opened a issue and sent a patch: https://issues.apache.org/jira/browse/WICKET-3994
The solution seems very trivial to me so I ask if it may be verified and eventually scheduled for Wicket 1.4.19. Thanks Daniele