@Override
    public Map<Errors, Integer> errorCounts() {
        HashMap<Errors, Integer> counts = new HashMap<>();
        updateErrorCounts(counts, Errors.forCode(data.errorCode()));
        return counts;
    }
@Test
    public void testErrorCountsReturnsOneError() {
        PushTelemetryResponseData data = new PushTelemetryResponseData()
               .setErrorCode(Errors.CLUSTER_AUTHORIZATION_FAILED.code());
        data.setErrorCode(Errors.INVALID_CONFIG.code());

        PushTelemetryResponse response = new PushTelemetryResponse(data);
        assertEquals(Collections.singletonMap(Errors.INVALID_CONFIG, 1), response.errorCounts());
    }