    @Test
    public void sendTest() {

        final List<Metric> metrics =
            List.of(
                Metric.builder()
                    .name("metric1")
                    .time(1L)
                    .value(BigDecimal.ONE)
                    .build(),
                Metric.builder()
                    .name("metric2")
                    .time(2L)
                    .value(BigDecimal.valueOf(2L))
                    .build()
            );

        when(metricService.collect()).thenReturn(metrics);
        doNothing().when(metricService).send(metrics);

        metricJob.send();

        verify(metricService).collect();
        verify(metricService).send(metrics);
    }