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
  public void testNotEmptyWithNotEmptyString() {
    // This should not throw
    ArgumentUtil.requireNotEmpty("not empty string", "foo");
  }