@Test
public void testIsPalindrome() {

    Palindrome palindrome = new Palindrome();
    assertTrue(palindrome.isPalindrome(new String("a")));
    assertTrue(palindrome.isPalindrome(new String("racecar")));
    assertTrue(palindrome.isPalindrome(new String("noon")));
    assertFalse(palindrome.isPalindrome(new String("horse")));
    assertFalse(palindrome.isPalindrome(new String("rancor")));
    assertFalse(palindrome.isPalindrome(new String("aaaaab")));
    CharacterComparator cc = new OffByOne();
    assertTrue(palindrome.isPalindrome(new String("a"),cc));
    assertTrue(palindrome.isPalindrome(new String("flake"),cc));
}