*/
@Test
public void testGetBackoffFailoverMetrics() throws JSONException {
ReportTestUtils.setupSinkFactory();
SinkBuilder bld = BackOffFailOverSink.builder();
EventSink snk = bld.build(new ReportTestingContext(), "one", "two");
ReportEvent rpt = snk.getMetrics();
LOG.info(ReportUtil.toJSONObject(rpt).toString());
assertNotNull(rpt.getLongMetric(BackOffFailOverSink.A_PRIMARY));
assertNotNull(rpt.getLongMetric(BackOffFailOverSink.A_FAILS));
assertNotNull(rpt.getLongMetric(BackOffFailOverSink.A_BACKUPS));