@Test
public void shouldReturnErrorWhenCurrencyIsNotDollar() {

    CurrencyUnit real = Monetary.getCurrency("BRL");
    Car ferrari = Car.builder().withPlate("BRL-1234")
            .withModel("ferrari")
            .withPrice(Money.of(1000, real))
            .build();
    Set<ConstraintViolation<Car>> validate = validator.validate(ferrari);
    assertFalse(validate.isEmpty());
    String message = validate.stream().findFirst()
            .map(ConstraintViolation::getMessageTemplate)
            .orElse(null);
    assertEquals("The car price must work with USD", message);
}