@Test
public void getDataPointsTest()
{

  DimensionalTable<Integer> table = createTestTable();
  //Select on publisher
  Set<Integer> expectedDataPoints = Sets.newHashSet(3, 4, 5);
  Map<String, String> selectionKeys = Maps.newHashMap();
  selectionKeys.put("publisher", "twitter");
  Set<Integer> dataPoints = Sets.newHashSet(table.getDataPoints(selectionKeys));
  Assert.assertEquals(expectedDataPoints, dataPoints);
  //Select on advertiser
  expectedDataPoints = Sets.newHashSet(8, 9);
  selectionKeys.clear();
  selectionKeys.put("advertiser", "microsoft");
  dataPoints = Sets.newHashSet(table.getDataPoints(selectionKeys));
  Assert.assertEquals(expectedDataPoints, dataPoints);
  //Select on location
  expectedDataPoints = Sets.newHashSet(2, 10);
  selectionKeys.clear();
  selectionKeys.put("location", "NY");
  dataPoints = Sets.newHashSet(table.getDataPoints(selectionKeys));
  Assert.assertEquals(expectedDataPoints, dataPoints);
}