Unit testing has been a real challenge ever especially when someone needs to work a lot around legacy code, mocking, not-to-hit-database etc. Many times I had to reinvent the wheel to write test programs while working in those areas. Is there any new idea introduced in Java 8 ?
Since reading it I actually quite enjoy working with Legacy code now. The prospect of finding a tangled mess of code used to fill me with dread, with the first though in my head being "I'm not touching THAT!". But now I get to have a good laugh at the ridiculousness of it and relish in the challenge of taking it on. Then bask in the glory once it's all been nice and safely refactored.
Turns out this is a large part of what it means to be a half decent Software Engineer.