public static boolean hasText(String str) {
        return (str != null && !str.isEmpty() && containsText(str));
    }
@Test
    void testHasText() {
        // Test case 1: Empty string
        assertFalse(StringUtils.hasText(""));
        
        // Test case 2: String with whitespace only
        assertFalse(StringUtils.hasText("   "));
        
        // Test case 3: Null string
        assertFalse(StringUtils.hasText(null));
        
        // Test case 4: String with non-whitespace characters
        assertTrue(StringUtils.hasText("hello"));
        
        // Test case 5: String with both text and whitespace
        assertTrue(StringUtils.hasText(" hello "));
    }