### Question:
Palindrome { public boolean isPalindromeReverseTheString(String text) { StringBuilder reverse = new StringBuilder(); String clean = text.replaceAll("\\s+", "").toLowerCase(); char[] plain = clean.toCharArray(); for (int i = plain.length - 1; i >= 0; i--) reverse.append(plain[i]); return (reverse.toString()).equals(clean); }  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 whenReverseWord_shouldBePalindrome() { for (String word : words) assertTrue(palindrome.isPalindromeReverseTheString(word)); }
@Test public void whenReverseSentence_shouldBePalindrome() { for (String sentence : sentences) assertTrue(palindrome.isPalindromeReverseTheString(sentence)); }