Also, note that they are using easymock - I know we usually use jmockit - you will find easymock very easy to learn :).