ActorDetailEntityToActor extends Mapper<Actor , ActorEntity> { @Override public ActorEntity map(final Actor value) { final ActorEntity actorEntity = new ActorEntity(); fillActorEntity(actorEntity, value); return actorEntity; }  @Override ActorEntity map(final Actor value); @Override Actor reverseMap(final ActorEntity value); List<CinemaEntity> mapCinemas(List<Cinema> cinemas); Actor mapDetailActor(final ActorEntity value , final List<CinemaEntity> cinemaEntities);  }
@Test public void correctlyMapActorId(){ int expectedActorId = 23; doReturn(expectedActorId).when(actorMock).getActorId(); final ActorEntity actorEntity = mapper.map(actorMock); assertThat(actorEntity.getActorId() , is(expectedActorId)); }