@Test
  public void shouldSubmitReportingData() throws Exception {
    Map<String, Object> data = new HashMap<>();
    data.put("data", new ReportingData("Boo").with("abc", "def"));
    when(agent.post(eq("http://drishti/submit"), any(String.class), eq("application/json")))
        .thenReturn(new HttpResponse(true, null));

    listener.submitReportingData(new MotechEvent("SUBJECT", data));

    verify(agent)
        .post(
            "http://drishti/submit",
            "{\"type\":\"Boo\",\"data\":{\"abc\":\"def\"}}",
            "application/json");
  }