@Override
    public boolean isSupport(MetricsEvent event) {
        return event instanceof RequestEvent;
    }
@Test
    void testListener() {
        AggregateMetricsCollector metricsCollector = new AggregateMetricsCollector(applicationModel);
        RequestEvent event = RequestEvent.toRequestEvent(
                applicationModel,
                null,
                null,
                null,
                invocation,
                MetricsSupport.getSide(invocation),
                MethodMetric.isServiceLevel(applicationModel));
        RequestEvent beforeEvent = RequestEvent.toRequestErrorEvent(
                applicationModel,
                null,
                null,
                invocation,
                MetricsSupport.getSide(invocation),
                RpcException.FORBIDDEN_EXCEPTION,
                MethodMetric.isServiceLevel(applicationModel));

        Assertions.assertTrue(metricsCollector.isSupport(event));
        Assertions.assertTrue(metricsCollector.isSupport(beforeEvent));
    }