### Question:
Utils { public static void checkState(boolean isValid, String errorMessage) { if (!isValid) { throw new IllegalStateException(String.valueOf(errorMessage)); } } private  Utils(); static void checkArgument(boolean isValid, String errorMessage); static void checkArgument(
      boolean expression, String errorMessageTemplate, Object... errorMessageArgs); static void checkState(boolean isValid, String errorMessage); static void validateLabelPairs(String[] keyValuePairs);  }### Answer:
@Test void checkState() { assertThrows( IllegalStateException.class, () -> Utils.checkState(false, TEST_MESSAGE), TEST_MESSAGE); }