// Path: src/main/java/com/jfcorugedo/rserver/common/collection/CollectionUtils.java
// @SafeVarargs
// public static <T> List<T> newList(T... values) {
// 	List<T> arrayList = new ArrayList<>(values.length);
// 	for(T element : values) {
// 		arrayList.add(element);
// 	}
// 		
// 	return arrayList;
// }
// 
// Path: src/main/java/com/jfcorugedo/rserver/exception/BadRequestException.java
// @ResponseStatus(value=HttpStatus.BAD_REQUEST)
// public class BadRequestException extends RuntimeException {
// 
// 	private static final long serialVersionUID = 1L;
// 
// 	public BadRequestException(String message) {
// 		super(message);
// 	}
// }
// 
// Path: src/main/java/com/jfcorugedo/rserver/generalization/algorithm/KolmogorovSmirnovTest.java
// public interface KolmogorovSmirnovTest {
// 
// 	double CRITICAL_VALUE_0_05 = 1.36;
// 	double CRITICAL_VALUE_0_01 = 1.63;
// 
// 	/**
// 	 * This test try to test if the null hypothesis is truth or not.
// 	 * 
// 	 * The null hypothesis is that the samples are drawn from the same distribution.
// 	 * 
// 	 */
// 	boolean areGeneralizable(double[] x, double[] y);
// 
// 	/**
// 	 * It returns a string representation of the algorithm used to compare the given samples.
// 	 * 
// 	 * @return
// 	 */
// 	String getAlgorithm();
// }


import static com.jfcorugedo.rserver.common.collection.CollectionUtils.newList;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import java.util.ArrayList;
import java.util.List;
import org.junit.Rule;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnit;
import org.mockito.junit.MockitoRule;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import com.jfcorugedo.rserver.exception.BadRequestException;
import com.jfcorugedo.rserver.generalization.algorithm.KolmogorovSmirnovTest;
package com.jfcorugedo.rserver.service;





public class RControllerTest {
	
	@Rule
	public MockitoRule rule = MockitoJUnit.rule();

	@Mock
	private RService rService;
	
	@Mock
// Path: src/main/java/com/jfcorugedo/rserver/common/collection/CollectionUtils.java
// @SafeVarargs
// public static <T> List<T> newList(T... values) {
// 	List<T> arrayList = new ArrayList<>(values.length);
// 	for(T element : values) {
// 		arrayList.add(element);
// 	}
// 		
// 	return arrayList;
// }
// 
// Path: src/main/java/com/jfcorugedo/rserver/exception/BadRequestException.java
// @ResponseStatus(value=HttpStatus.BAD_REQUEST)
// public class BadRequestException extends RuntimeException {
// 
// 	private static final long serialVersionUID = 1L;
// 
// 	public BadRequestException(String message) {
// 		super(message);
// 	}
// }
// 
// Path: src/main/java/com/jfcorugedo/rserver/generalization/algorithm/KolmogorovSmirnovTest.java
// public interface KolmogorovSmirnovTest {
// 
// 	double CRITICAL_VALUE_0_05 = 1.36;
// 	double CRITICAL_VALUE_0_01 = 1.63;
// 
// 	/**
// 	 * This test try to test if the null hypothesis is truth or not.
// 	 * 
// 	 * The null hypothesis is that the samples are drawn from the same distribution.
// 	 * 
// 	 */
// 	boolean areGeneralizable(double[] x, double[] y);
// 
// 	/**
// 	 * It returns a string representation of the algorithm used to compare the given samples.
// 	 * 
// 	 * @return
// 	 */
// 	String getAlgorithm();
// }


// Path: src/test/java/com/jfcorugedo/rserver/service/RControllerTest.java
import static com.jfcorugedo.rserver.common.collection.CollectionUtils.newList;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import java.util.ArrayList;
import java.util.List;
import org.junit.Rule;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnit;
import org.mockito.junit.MockitoRule;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import com.jfcorugedo.rserver.exception.BadRequestException;
import com.jfcorugedo.rserver.generalization.algorithm.KolmogorovSmirnovTest;

package com.jfcorugedo.rserver.service;





public class RControllerTest {
	
	@Rule
	public MockitoRule rule = MockitoJUnit.rule();

	@Mock
	private RService rService;
	
	@Mock
	private KolmogorovSmirnovTest ksTest;