### Question:
Palindrome { public boolean isPalindromeRecursive(String text) { String clean = text.replaceAll("\\s+", "").toLowerCase(); return recursivePalindrome(clean, 0, clean.length() - 1); }  boolean isPalindrome(String text); boolean isPalindromeReverseTheString(String text); boolean isPalindromeUsingStringBuilder(String text); boolean isPalindromeUsingStringBuffer(String text); boolean isPalindromeRecursive(String text); boolean isPalindromeUsingIntStream(String text);  }### Answer:
@Test public void whenPalindromeRecursive_wordShouldBePalindrome() { for (String word : words) assertTrue(palindrome.isPalindromeRecursive(word)); }
@Test public void whenPalindromeRecursive_sentenceShouldBePalindrome() { for (String sentence : sentences) assertTrue(palindrome.isPalindromeRecursive(sentence)); }