@Override
    public void beforeMethod(final TargetAdviceObject target, final TargetAdviceMethod method, final Object[] args, final String pluginType) {
        MetricsCollectorRegistry.<CounterMetricsCollector>get(config, pluginType).inc("commit");
    }
@Test
    void assertMethod() {
        advice.beforeMethod(new TargetAdviceObjectFixture(), mock(TargetAdviceMethod.class), new Object[]{}, "FIXTURE");
        assertThat(MetricsCollectorRegistry.get(config, "FIXTURE").toString(), is("commit=1"));
    }