@Test
public void getModeTest() {

	int[] testArray = new int[] { 1, 2, 1, 1, 4, 6, 6, 6, 7, 7, 7, 7, 7, 7, 2, 1, 1 };
	Assert.assertEquals(7, TimeSeriesUtil.getMode(testArray));
	testArray = new int[] {};
	Assert.assertEquals(-1, TimeSeriesUtil.getMode(testArray));
	testArray = new int[] { 1, 1, 2, 2 };
	Assert.assertEquals(1, TimeSeriesUtil.getMode(testArray));
}