### Question:
KeyWordUtil { public static boolean isKeyword(String word) { if (null == word) { return false; } for (String keyWord: KEY_WORDS) { if (keyWord.equals(word)) { return true; } } return false; } private  KeyWordUtil(); static boolean isKeyword(String word);  }### Answer:
@Test public void testKeyWord() { assertEquals(true, KeyWordUtil.isKeyword("SELECT")); assertEquals(true, KeyWordUtil.isKeyword("TRANSACTION")); assertEquals(true, KeyWordUtil.isKeyword("MATCH")); assertEquals(true, KeyWordUtil.isKeyword("AS")); assertEquals(true, KeyWordUtil.isKeyword("NOTNULL")); assertEquals(true, KeyWordUtil.isKeyword("NOT")); assertEquals(false, KeyWordUtil.isKeyword("PERSONS")); assertEquals(false, KeyWordUtil.isKeyword("NAME")); assertEquals(false, KeyWordUtil.isKeyword("LOCATION")); }
@Test public void testNullKeyword() { assertEquals(false, KeyWordUtil.isKeyword(null)); }