@Test
public void errorsWhenDefaultUnset() {

    exception.expect(IllegalStateException.class);
    exception.expectMessage("Default registry name has not been set.");
    SharedMetricRegistries.getDefault();
}