@Test
public void handlesInfiniteDenominators() throws Exception {

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