@Test
    void integerValid() {
        CurrencyValidator validator = CurrencyValidator.getInstance();
        BigDecimal expected = new BigDecimal("1234.00");
        BigDecimal negative = new BigDecimal("-1234.00");

        assertEquals(expected, validator.validate(ukPound + "1,234", uk), "UK locale");
        assertEquals(negative, validator.validate("-" + ukPound + "1,234", uk), "UK negative");

        assertEquals(expected, validator.validate(usDollar + "1,234", us), "US locale");
        assertEquals(negative, validator.validate("-" + usDollar + "1,234", us), "US negative");
    }
Test Valid integer (non-decimal) currency values
primefaces/src/test/java/org/primefaces/util/CurrencyValidatorTest.java