@Override
    public MetricType getType() {
        return MetricType.GAUGE_RUBYHASH;
    }
@Test
    public void getValue() {
        RubyHashGauge gauge = new RubyHashGauge("bar", rubyHash);
        assertThat(gauge.getValue().toString()).isEqualTo(RUBY_HASH_AS_STRING);
        assertThat(gauge.getType()).isEqualTo(MetricType.GAUGE_RUBYHASH);

        //Null initialize
        final RubyHashGauge gauge2 = new RubyHashGauge("bar");
        Throwable thrown = catchThrowable(() -> {
            gauge2.getValue().toString();
        });
        assertThat(thrown).isInstanceOf(NullPointerException.class);
        assertThat(gauge.getType()).isEqualTo(MetricType.GAUGE_RUBYHASH);
    }