### Question:
TermUtils { static boolean isValidEntityName(String string) { if(string==null) { return false; } return Pattern.matches("^[\\p{javaLowerCase}\\p{javaUpperCase}]+$", string); } private  TermUtils();   }### Answer:
@Test public void testIsValidEntityName$invalid() throws Exception { assertThat(TermUtils.isValidEntityName("invalid name"),equalTo(false)); }
@Test public void testIsValidEntityName$null() throws Exception { assertThat(TermUtils.isValidEntityName(null),equalTo(false)); }