### Question:
DropwizardRequestMetrics implements RequestMetrics { @Override public Context startBulkRequest() { return new DropwizardContext(metricNamer.bulk()); } DropwizardRequestMetrics(MetricRegistry metricRegistry);  DropwizardRequestMetrics(MetricRegistry metricRegistry, MetricNamer metricNamer); static DropwizardRequestMetrics withDefaultMBeans(MetricRegistry registry); @Override Context startCrudRequest(String operation, String entity, String version); @Override Context startStreamingCrudRequest(String operation, String entity, String version); @Override Context startLockRequest(String lockOperation, String domain); @Override Context startHealthRequest(); @Override Context startDiagnosticsRequest(); @Override Context startSavedSearchRequest(String searchName, String entity, String version); @Override Context startBulkRequest(); @Override Context startGenerateRequest(String entity, String version, String field);  }### Answer:
@Test public void testMarkRequestExceptionWithException() { DropwizardRequestMetrics.Context context = requestMetrics.startBulkRequest(); context.markRequestException(new NullPointerException()); Meter exceptionMeter = metricsRegistry.meter("request.bulk.errors.java_lang_NullPointerException"); Assert.assertEquals(1, exceptionMeter.getCount()); }