ValidationUtil { public static void validateNoJavaKeyword(String str) { if (JAVA_KEYWORDS.contains(str)) { throw new ReservedKeywordException(str); } } private  ValidationUtil(); static void validateNoJavaKeyword(String str); static void validateValidJavaFieldName(String str);  }
@Test(expected = ReservedKeywordException.class) public void shouldRecognizeJavaKeywords() { ValidationUtil.validateNoJavaKeyword(keywordParam); }