// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// @NonNull static <T> T checkNotNull(@Nullable final T reference, final String message) {
//   if (reference == null) {
//     throw new IllegalArgumentException(message);
//   }
// 
//   return reference;
// }


import com.pushtorefresh.private_constructor_checker.PrivateConstructorChecker;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import static com.vanniktech.espresso.core.utils.Utils.checkNotNull;
import static org.assertj.core.api.Java6Assertions.assertThat;
package com.vanniktech.espresso.core.utils;



public final class UtilsTest {
  @Rule public final ExpectedException expectedException = ExpectedException.none();

  @Test public void constructorShouldBePrivate() {
    PrivateConstructorChecker.forClass(Utils.class)
        .expectedTypeOfException(AssertionError.class)
        .expectedExceptionMessage("No instances.")
        .check();
  }

  @Test public void checkNotNullNoNull() {
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// @NonNull static <T> T checkNotNull(@Nullable final T reference, final String message) {
//   if (reference == null) {
//     throw new IllegalArgumentException(message);
//   }
// 
//   return reference;
// }


// Path: espresso-core-utils/src/test/java/com/vanniktech/espresso/core/utils/UtilsTest.java
import com.pushtorefresh.private_constructor_checker.PrivateConstructorChecker;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import static com.vanniktech.espresso.core.utils.Utils.checkNotNull;
import static org.assertj.core.api.Java6Assertions.assertThat;

package com.vanniktech.espresso.core.utils;



public final class UtilsTest {
  @Rule public final ExpectedException expectedException = ExpectedException.none();

  @Test public void constructorShouldBePrivate() {
    PrivateConstructorChecker.forClass(Utils.class)
        .expectedTypeOfException(AssertionError.class)
        .expectedExceptionMessage("No instances.")
        .check();
  }

  @Test public void checkNotNullNoNull() {
    assertThat(checkNotNull(5, "should never be")).isEqualTo(5);