Using mock (maven project)