// Path: src/main/java/com/jfcorugedo/rserver/exception/DimensionMismatchException.java
// @ResponseStatus(value=HttpStatus.BAD_REQUEST)
// public class DimensionMismatchException extends RuntimeException {
// 
// 	private static final long serialVersionUID = 1L;
// 	
// 	
// 	public DimensionMismatchException(String message) {
// 		super(message);
// 	}
// }


import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
import com.jfcorugedo.rserver.exception.DimensionMismatchException;
		
		assertThat(result).isTrue();
	}
	
	@Test
	public void firstSampleHasZeroFrequency() {
		
		ChiSquareTest chiSquareTest = new ChiSquareTestImpl();
		
		boolean result = chiSquareTest.areGeneralizable(
											new long[]{0, 2000}, 
											new long[]{10, 10}
										);
		
		assertThat(result).isTrue();
	}
	
	@Test
	public void binaryFrequenciesWithoutAnyZero() {
		
		ChiSquareTest chiSquareTest = new ChiSquareTestImpl();
		
		boolean result = chiSquareTest.areGeneralizable(
											new long[]{1000, 20000}, 
											new long[]{100, 100}
										);
		
		assertThat(result).isFalse();
	}
	
// Path: src/main/java/com/jfcorugedo/rserver/exception/DimensionMismatchException.java
// @ResponseStatus(value=HttpStatus.BAD_REQUEST)
// public class DimensionMismatchException extends RuntimeException {
// 
// 	private static final long serialVersionUID = 1L;
// 	
// 	
// 	public DimensionMismatchException(String message) {
// 		super(message);
// 	}
// }


// Path: src/test/java/com/jfcorugedo/rserver/generalization/algorithm/ChiSquareTestImplTest.java
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
import com.jfcorugedo.rserver.exception.DimensionMismatchException;

		
		assertThat(result).isTrue();
	}
	
	@Test
	public void firstSampleHasZeroFrequency() {
		
		ChiSquareTest chiSquareTest = new ChiSquareTestImpl();
		
		boolean result = chiSquareTest.areGeneralizable(
											new long[]{0, 2000}, 
											new long[]{10, 10}
										);
		
		assertThat(result).isTrue();
	}
	
	@Test
	public void binaryFrequenciesWithoutAnyZero() {
		
		ChiSquareTest chiSquareTest = new ChiSquareTestImpl();
		
		boolean result = chiSquareTest.areGeneralizable(
											new long[]{1000, 20000}, 
											new long[]{100, 100}
										);
		
		assertThat(result).isFalse();
	}
	
	@Test(expected=DimensionMismatchException.class)