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