public static void checkState(boolean expression,
                                String errorMessageTemplate,
                                Object... errorMessageArgs) {
    if (!expression) {
      throw new IllegalStateException(
          format(errorMessageTemplate, errorMessageArgs));
    }
  }
@Test
  void checkStateInputFalseNotNullNullOutputIllegalStateException() {
    assertThatExceptionOfType(IllegalStateException.class).isThrownBy(() -> {
      // Arrange
      final boolean expression = false;
      final String errorMessageTemplate = "";
      final Object[] errorMessageArgs = null;
      Util.checkState(expression, errorMessageTemplate, errorMessageArgs);
      // Method is not expected to return due to exception thrown
    });
    // Method is not expected to return due to exception thrown
  }