@Test
public void testValidateCodePointValues() throws Exception {

    int[] cpv = {-1, 2, 3};
    try {
        Helper.validateCodePointValues(cpv);
        Helper.validateCodePointValues(new int[]{0, GlobalConstants.MAX_ALLOWED_CODE_POINT + 1});
    } catch (IllegalArgumentException e) {
        assertEquals(e.getMessage(), "Code point must be between " + GlobalConstants.MIN_ALLOWED_CODE_POINT + " and " + GlobalConstants.MAX_ALLOWED_CODE_POINT);
    }
}