@Test
public void testGetTotalReads() throws Exception {

	LocalDate localDate = LocalDate.now();
	AnalyticsReportsDataProvider analyticsReportsDataProvider =
		new AnalyticsReportsDataProvider(
			_getHttp(
				HashMapBuilder.put(
					"/read-count", "12345"
				).put(
					"/read-counts",
					JSONUtil.put(
						"histogram",
						JSONUtil.put(
							JSONUtil.put(
								"key",
								localDate.format(
									DateTimeFormatter.ISO_LOCAL_DATE)
							).put(
								"value", 5
							))
					).put(
						"value", 5
					).toJSONString()
				).build()));
	Long totalReads = analyticsReportsDataProvider.getTotalReads(
		RandomTestUtil.randomLong(), RandomTestUtil.randomString());
	Assert.assertEquals(Long.valueOf(12340), totalReads);
}