Refactor (spring + mockito + slf4j).