@Test
@Ignore("Requires external HTTP requests to be made")
public void testRequestDimensions() throws JSONException {

    org.junit.Assume.assumeTrue(TestHelper.canDoHttp());
    org.junit.Assume.assumeTrue(TestHelper.redisAvailable());
    String json = request.getDimensions();
    JSONArray dimensions = JSONHelper.createJSONArray(json);
    for (int i = 0; i < dimensions.length(); i++) {
        JSONObject dimension = dimensions.getJSONObject(i);
        assertNotNull("dimension has no id", dimension.optString("id", null));
        assertNotNull("dimension has no codes", dimension.optJSONArray("codes"));
    }
}