ClassPathFileSystemWatcherTests#configuredWithRestartStrategy is flaky and sometimes fails due to the listener receiving two events rather than one. As things stand, it's impossible to tell from the failure what those two events were. We could improve the diagnostics by using hasSize(int expectedSize) and giving ClassPathChangedEvent a better toString() implementation.