public static void main(String[] args) throws IOException {

    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    System.out.println("Введите текст и программа даст инфомрацию о тексте: ");
    String text = reader.readLine();

    if (StringUtils.isAllUpperCase(text)) System.out.println("В тексте только заглавные буквы");

    if (StringUtils.isAllLowerCase(text)) System.out.println("В тексте только строчные буквы");

    if (StringUtils.isNumeric(text)) System.out.println("Тест состоит из цифр");

    String tempReverse = StringUtils.reverse(text);
    System.out.println("Перевернутый текст: " + tempReverse);

    int length = StringUtils.length(text);
    System.out.println("Длина текста: " + length);

    if (length >= 5) {
      String tempRight = StringUtils.right(text, 5);
      System.out.println("Первые 5 символов текста: " + tempRight);
    } else {
      System.out.println("Длина текста менее 5 символов");
    }

    reader.close();
  }
  /**
   * 显示秒值为**年**月**天 **时**分**秒 如1年2个月3天 10小时
   *
   * @return
   */
  public static final String prettySeconds(int totalSeconds) {
    StringBuilder s = new StringBuilder();
    int second = totalSeconds % 60;
    if (totalSeconds > 0) {
      s.append("秒");
      s.append(StringUtils.reverse(String.valueOf(second)));
    }

    totalSeconds = totalSeconds / 60;
    int minute = totalSeconds % 60;
    if (totalSeconds > 0) {
      s.append("分");
      s.append(StringUtils.reverse(String.valueOf(minute)));
    }

    totalSeconds = totalSeconds / 60;
    int hour = totalSeconds % 24;
    if (totalSeconds > 0) {
      s.append(StringUtils.reverse("小时"));
      s.append(StringUtils.reverse(String.valueOf(hour)));
    }

    totalSeconds = totalSeconds / 24;
    int day = totalSeconds % 31;
    if (totalSeconds > 0) {
      s.append("天");
      s.append(StringUtils.reverse(String.valueOf(day)));
    }

    totalSeconds = totalSeconds / 31;
    int month = totalSeconds % 12;
    if (totalSeconds > 0) {
      s.append("月");
      s.append(StringUtils.reverse(String.valueOf(month)));
    }

    totalSeconds = totalSeconds / 12;
    int year = totalSeconds;
    if (totalSeconds > 0) {
      s.append("年");
      s.append(StringUtils.reverse(String.valueOf(year)));
    }
    return s.reverse().toString();
  }
 @Test
 public void shouldReverseString() {
   Function<String, String> functionReverse = new FunctionReverse();
   assertThat(functionReverse.apply("alamakota")).isEqualTo(StringUtils.reverse("alamakota"));
 }