// Path: src/main/java/info/interactivesystems/gamificationengine/api/exeption/ApiError.java
// @ApplicationException
// public class ApiError extends WebApplicationException {
// 
// 	private static final long serialVersionUID = 1L;
// 
// 	/**
// 	 * 
// 	 * @param status
// 	 *            a HTTP status code.
// 	 * @param message
// 	 *            a description of the error cause.
// 	 */
// 	public ApiError(Response.Status status, String message) {
// 		this(status, message, new Object[] {});
// 	}
// 
// 	/**
// 	 * @param status
// 	 *            a HTTP status code
// 	 * @param message
// 	 *            a description of the error cause, may be a formatted string.
// 	 * @param args
// 	 *            for format string, may be zero, see {@link String#format test}
// 	 *            .
// 	 */
// 	public ApiError(Response.Status status, String message, Object... args) {
// 		super(ResponseSurrogate.of(status, null, Notification.of(String.format(message, args))));
// 	}
// }


import static com.google.common.truth.Truth.assertThat;
import info.interactivesystems.gamificationengine.api.exeption.ApiError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
package info.interactivesystems.gamificationengine.api;




public class ValidateUtilsTest {

	@Rule
	public ExpectedException thrown = ExpectedException.none();

	@Test
	public void testRequireNotNull() {
		Object object = new Object();

		assertThat(ValidateUtils.requireNotNull(0, object)).isNotNull();
	}

	@Test
	public void testRequireNotNullException() {
// Path: src/main/java/info/interactivesystems/gamificationengine/api/exeption/ApiError.java
// @ApplicationException
// public class ApiError extends WebApplicationException {
// 
// 	private static final long serialVersionUID = 1L;
// 
// 	/**
// 	 * 
// 	 * @param status
// 	 *            a HTTP status code.
// 	 * @param message
// 	 *            a description of the error cause.
// 	 */
// 	public ApiError(Response.Status status, String message) {
// 		this(status, message, new Object[] {});
// 	}
// 
// 	/**
// 	 * @param status
// 	 *            a HTTP status code
// 	 * @param message
// 	 *            a description of the error cause, may be a formatted string.
// 	 * @param args
// 	 *            for format string, may be zero, see {@link String#format test}
// 	 *            .
// 	 */
// 	public ApiError(Response.Status status, String message, Object... args) {
// 		super(ResponseSurrogate.of(status, null, Notification.of(String.format(message, args))));
// 	}
// }


// Path: src/test/java/info/interactivesystems/gamificationengine/api/ValidateUtilsTest.java
import static com.google.common.truth.Truth.assertThat;
import info.interactivesystems.gamificationengine.api.exeption.ApiError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;

package info.interactivesystems.gamificationengine.api;




public class ValidateUtilsTest {

	@Rule
	public ExpectedException thrown = ExpectedException.none();

	@Test
	public void testRequireNotNull() {
		Object object = new Object();

		assertThat(ValidateUtils.requireNotNull(0, object)).isNotNull();
	}

	@Test
	public void testRequireNotNullException() {
		thrown.expect(ApiError.class);