Args { public static String notBlank(final String argument, final String member) { if (StringUtils.isBlank(argument)) { throw new IllegalArgumentException(member + " may not be blank/empty/null"); } return argument; }  static T notNull(final T argument, final String member); static String notEmpty(String argument, final String member); static String notBlank(final String argument, final String member);  }
@Test public void testNotBlank() { try { notBlank("", ""); fail(); } catch (IllegalArgumentException expected) { } notBlank("xxx", ""); }