### Question:
ParametersChecker { public static void checkParameterDefault(final String errorMessage, final String... parameters) { if (parameters == null) { throw new IllegalArgumentException(errorMessage + MANDATORY_PARAMETER); } for (final String parameter : parameters) { if (Strings.isNullOrEmpty(parameter) || parameter.trim().isEmpty()) { throw new IllegalArgumentException(errorMessage + MANDATORY_PARAMETER); } } } private  ParametersChecker(); static void checkParameter(final String errorMessage,
                                    final String... parameters); static void checkParameterDefault(final String errorMessage,
                                           final String... parameters); static boolean isNotEmpty(final String... parameters); static void checkParameterDefault(final String errorMessage,
                                           final Object... parameters); static void checkParameterNullOnly(final String errorMessage,
                                            final String... parameters); static void checkParameter(final String errorMessage,
                                    final Object... parameters); static void checkValue(final String name, final long variable,
                                final long minValue); static String checkSanityString(final String value); static void checkSanityString(final String... strings); static final String DEFAULT_ERROR; static final Pattern UNPRINTABLE_PATTERN; static final List<String> RULES; static final String[] ZERO_ARRAY_STRING; static final Pattern HTML_PATTERN; }### Answer:
@Test public final void testCheckParamaterDefaultStringStringArray() { try { ParametersChecker.checkParameterDefault("test message", (String[]) null); fail("SHOULD_RAIZED_ILLEGAL_ARGUMENT_EXCEPTION"); } catch (final IllegalArgumentException e) { } try { ParametersChecker.checkParameterDefault("test message", null, "notnull"); fail("SHOULD_RAIZED_ILLEGAL_ARGUMENT_EXCEPTION"); } catch (final IllegalArgumentException e) { } try { ParametersChecker.checkParameterDefault("test message", "notnull", null); fail("SHOULD_RAIZED_ILLEGAL_ARGUMENT_EXCEPTION"); } catch (final IllegalArgumentException e) { } try { ParametersChecker.checkParameterDefault("test message", "", "notnull"); fail("SHOULD_RAIZED_ILLEGAL_ARGUMENT_EXCEPTION"); } catch (final IllegalArgumentException e) { } try { ParametersChecker.checkParameterDefault("test message", "notnull", ""); fail("SHOULD_RAIZED_ILLEGAL_ARGUMENT_EXCEPTION"); } catch (final IllegalArgumentException e) { } try { ParametersChecker.checkParameterDefault("test message", "notnull", " "); fail("SHOULD_RAIZED_ILLEGAL_ARGUMENT_EXCEPTION"); } catch (final IllegalArgumentException e) { } try { ParametersChecker .checkParameterDefault("test message", "notNull", "notnull"); ParametersChecker.checkParameterDefault("test message", "notnull"); } catch (final IllegalArgumentException e) { fail("SHOULD_NOT_RAIZED_ILLEGAL_ARGUMENT_EXCEPTION"); } }
@Test public final void testCheckParamaterDefaultStringObjectArray() { try { ParametersChecker.checkParameterDefault("test message", (Object[]) null); fail("SHOULD_RAIZED_ILLEGAL_ARGUMENT_EXCEPTION"); } catch (final IllegalArgumentException e) { } final List<String> list = new ArrayList<String>(); try { ParametersChecker.checkParameterDefault("test message", null, list); fail("SHOULD_RAIZED_ILLEGAL_ARGUMENT_EXCEPTION"); } catch (final IllegalArgumentException e) { } try { ParametersChecker.checkParameterDefault("test message", list, null); fail("SHOULD_RAIZED_ILLEGAL_ARGUMENT_EXCEPTION"); } catch (final IllegalArgumentException e) { } try { ParametersChecker.checkParameterDefault("test message", list, list); ParametersChecker.checkParameterDefault("test message", list); } catch (final IllegalArgumentException e) { fail("SHOULD_NOT_RAIZED_ILLEGAL_ARGUMENT_EXCEPTION"); } }