public static void checkNotNullAndNotEmpty(@Nullable String value, String propertyName) {
    Preconditions.checkNotNull(value, "Property '" + propertyName + "' cannot be null");
    Preconditions.checkArgument(
        !value.trim().isEmpty(), "Property '" + propertyName + "' cannot be an empty string");
  }
@Test
  public void testCheckNotNullAndNotEmpty_stringPass() {
    Validator.checkNotNullAndNotEmpty("value", "ignored");
    // pass
  }