@Test
public void handlesNaNDenominators() throws Exception {

    final RatioGauge nan = new RatioGauge() {
        @Override
        protected Ratio getRatio() {
            return Ratio.of(10, Double.NaN);
        }
    };
    assertThat(nan.getValue())
            .isNaN();
}