Test program (using maven, java 8, junit & mockito)