@Test(expected = BadArgumentException.class) public void testNullArgument() throws BadArgumentException { validator.isValid(null); }
@Test(expected = BadArgumentException.class) public void testEmptyStringArgument() throws BadArgumentException { validator.isValid(""); }
@Test public void testInvalidPalindrome() throws BadArgumentException { for (String s : invalidControlList) { assertFalse(validator.isValid(s)); } }