@Override
    public Map<Errors, Integer> errorCounts() {
        HashMap<Errors, Integer> counts = new HashMap<>();
        updateErrorCounts(counts, Errors.forCode(data.errorCode()));
        return counts;
    }
@Test
    public void testErrorCountsReturnsNoneWhenNoErrors() {
        PushTelemetryResponseData data = new PushTelemetryResponseData()
                .setErrorCode(Errors.NONE.code());
        PushTelemetryResponse response = new PushTelemetryResponse(data);
        assertEquals(Collections.singletonMap(Errors.NONE, 1), response.errorCounts());
    }