@Test
public void testSetNullMetricsPrefix() {

    final Configuration c = new Configuration();
    assertThatThrownBy(() -> c.setMetricsPrefix(null))
            .isInstanceOf(NullPointerException.class)
            .hasMessage("metricsPrefix");
}