@Test
public void testGetAllReports() throws IOException {

  transport = new HttpTransceiver(url);
  try {
    this.avroClient = (AvroFlumeReportServer) SpecificRequestor.getClient(
        AvroFlumeReportServer.class, transport);
  } catch (Exception e) {
    throw new IOException("Failed to open AvroReportServer at " + PORT
        + " : " + e.getMessage());
  }
  Map<CharSequence, AvroFlumeReport> ret = avroClient.getAllReports();
  assertTrue(ret.size() == 1);
  AvroFlumeReport rep = ret.get(new Utf8("reportable1"));
  assertNotNull("Report 'reportable1' not found", rep);
  assertTrue("Expected exactly one double metric",
      rep.doubleMetrics.size() == 1);
  assertTrue("Expected double metric to be equal to 0.5", rep.doubleMetrics
      .get(new Utf8("doubleAttr")) == 0.5);
}