Mockito makes stubs a bit more concisely than declaring anoymous classes.