	@Test public void estimateTableCardinalityTest() {

		TableStats s = new TableStats(this.tableId, IO_COST);
		
		// Try a random selectivity
		Assert.assertEquals(306, s.estimateTableCardinality(0.3));
		
		// Make sure we get all rows with 100% selectivity, and none with 0%
		Assert.assertEquals(1020, s.estimateTableCardinality(1.0));
		Assert.assertEquals(0, s.estimateTableCardinality(0.0));
	}