/** Test : Mapping from 'FaresCheckingExclusion' to 'FaresCheckingExclusionEntity' */
  @Test
  public void testMapFaresCheckingExclusionToFaresCheckingExclusionEntity() {
    // Given
    FaresCheckingExclusion faresCheckingExclusion = new FaresCheckingExclusion();
    faresCheckingExclusion.setValue(mockValues.nextString(45));
    faresCheckingExclusion.setIssuingLocation(mockValues.nextString(45));
    faresCheckingExclusion.setSellingLocation(mockValues.nextString(45));
    faresCheckingExclusion.setOriginLocation(mockValues.nextString(45));
    faresCheckingExclusion.setDestinationLocation(mockValues.nextString(45));
    faresCheckingExclusion.setRoute(mockValues.nextString(45));
    faresCheckingExclusion.setProduct(mockValues.nextString(45));
    faresCheckingExclusion.setTicketStatus(mockValues.nextString(45));
    faresCheckingExclusion.setFare(mockValues.nextString(45));
    faresCheckingExclusion.setWithEffectFrom(mockValues.nextDate());
    faresCheckingExclusion.setWithEffectUntil(mockValues.nextDate());
    faresCheckingExclusion.setNullFare(mockValues.nextString(45));

    FaresCheckingExclusionEntity faresCheckingExclusionEntity = new FaresCheckingExclusionEntity();

    // When
    faresCheckingExclusionServiceMapper.mapFaresCheckingExclusionToFaresCheckingExclusionEntity(
        faresCheckingExclusion, faresCheckingExclusionEntity);

    // Then
    assertEquals(faresCheckingExclusion.getValue(), faresCheckingExclusionEntity.getValue());
    assertEquals(
        faresCheckingExclusion.getIssuingLocation(),
        faresCheckingExclusionEntity.getIssuingLocation());
    assertEquals(
        faresCheckingExclusion.getSellingLocation(),
        faresCheckingExclusionEntity.getSellingLocation());
    assertEquals(
        faresCheckingExclusion.getOriginLocation(),
        faresCheckingExclusionEntity.getOriginLocation());
    assertEquals(
        faresCheckingExclusion.getDestinationLocation(),
        faresCheckingExclusionEntity.getDestinationLocation());
    assertEquals(faresCheckingExclusion.getRoute(), faresCheckingExclusionEntity.getRoute());
    assertEquals(faresCheckingExclusion.getProduct(), faresCheckingExclusionEntity.getProduct());
    assertEquals(
        faresCheckingExclusion.getTicketStatus(), faresCheckingExclusionEntity.getTicketStatus());
    assertEquals(faresCheckingExclusion.getFare(), faresCheckingExclusionEntity.getFare());
    assertEquals(
        faresCheckingExclusion.getWithEffectFrom(),
        faresCheckingExclusionEntity.getWithEffectFrom());
    assertEquals(
        faresCheckingExclusion.getWithEffectUntil(),
        faresCheckingExclusionEntity.getWithEffectUntil());
    assertEquals(faresCheckingExclusion.getNullFare(), faresCheckingExclusionEntity.getNullFare());
  }
 @Before
 public void before() {
   faresCheckingExclusionServiceMapper = new FaresCheckingExclusionServiceMapper();
   faresCheckingExclusionServiceMapper.setModelMapper(modelMapper);
 }