public static void hasText(String text, String message) {
        if (!StringUtil.hasText(text)) {
            throw new IllegalArgumentException(message);
        }
    }
@Test(expected = IllegalArgumentException.class)
    public void assertHasText() {
        Assert.hasText(" ", "text is null");
    }