WorkerDozerMapper { public WorkerInfo workerToWorkerInfo(Worker worker) { return mapper.map(worker, WorkerInfo.class); } WorkerDozerMapper(); WorkerInfo workerToWorkerInfo(Worker worker); WorkerInfoImmutable workerToWorkerInfoImmutable(Worker worker);  }
@Test public void shouldMapWorkerToWorkerInfo() { Worker worker = Main.prepareWorker(); WorkerInfo workerInfo = workerDozerMapper.workerToWorkerInfo(worker); checkWorkerInfo(workerInfo); }