/**
* Tests getting the new updated query.
*/
public void testUpdateQuery() {
String dimensionValue = "ga:source";
DataQuery dataQuery = TestUtil.getNewDataQuery();
dataQuery.setDimensions(dimensionValue);
queryManager.updateQuery(dataQuery);
String expectedDim = dimensionValue + ",ga:date";
assertTrue(expectedDim.equals(dataQuery.getDimensions()));
assertTrue(expectedDim.equals(dataQuery.getSort()));
assertEquals(10000, dataQuery.getMaxResults());
assertEquals(-1, dataQuery.getStartIndex());
}