### Question:
Arguments { public static String checkNonEmpty(final String string, final String name) throws IllegalArgumentException { if (string == null || string.isEmpty()) { throw new IllegalArgumentException("Expecting a non-empty string for " + name); } return string; } private  Arguments(); static String checkNonEmpty(final String string, final String name); static String checkOneCharString(final String string, final String name); static String checkDuration(final String string, final String name); static String checkDurationNotRequired(final String string, final String name); static void checkPositiveNumber(final Number number, final String name); static void checkNotNegativeNumber(final Number number, final String name); static void checkNotNull(final Object obj, final String name); static void checkPrecision(@Nullable final ChronoUnit precision);  }### Answer:
@Test void checkNonEmptyString() { Arguments.checkNonEmpty("valid", "property"); }
@Test void checkNonEmptyStringEmpty() { Assertions.assertThatThrownBy(() -> Arguments.checkNonEmpty("", "property")) .isInstanceOf(IllegalArgumentException.class) .hasMessage("Expecting a non-empty string for property"); }
@Test void checkNonEmptyStringNull() { Assertions.assertThatThrownBy(() -> Arguments.checkNonEmpty(null, "property")) .isInstanceOf(IllegalArgumentException.class) .hasMessage("Expecting a non-empty string for property"); }