public static void requireNotEmpty(final String str, final String name) {
    requireNotNull(str, name);
    if (str.isEmpty()) {
      throw new IllegalArgumentException(name + " is an empty string");
    }
  }
@Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = ".*foo.*")
  public void testNotEmptyWithEmptyString() {
    ArgumentUtil.requireNotEmpty("", "foo");
  }