Args { public static String notEmpty(String argument, final String member) { if (StringUtils.isEmpty(argument)) { throw new IllegalArgumentException(member + " is 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 testNotEmpty() { try { notEmpty(null, ""); fail(); } catch (IllegalArgumentException expected) { } notEmpty("xxx", ""); }