@Test
public void shouldRecordPublishingError() {

  when(registry.meter(PUBLISHING_ERROR_RATE.tagged("type", "deploying", "state", "SUBMITTED"))).thenReturn(meter);
  stats.recordPublishingError("deploying", "SUBMITTED");
  verify(meter).mark();
}