FailRate { float getFailRate() { if (sampleCount == 0) { return 0f; } return 1 - ((float) successCount) / sampleCount; }    }
@Test public void testNoRecords() { assertClose(0f, failRate.getFailRate()); }