ModelStats { public double getInstanceRecall() { if (getTotalInstances() <= 0) { return 0.0d; } return (double) getCorrectInstance() / (getTotalInstances()); } protected  ModelStats();  ModelStats(String results); Pair<Integer, Integer> computeInstanceStatistics(String results); void setTotalInstances(int totalInstances); int getTotalInstances(); void setCorrectInstance(int correctInstance); int getCorrectInstance(); void setFieldStats(Stats fieldStats); Stats getFieldStats(); double getInstanceRecall(); String toString(); String toString(boolean includeRawResults); long getSupportSum(); String getRawResults(); void setRawResults(String rawResults); Stats fieldLevelStats(String theResult);  }
@Test public void test_empty() throws Exception { assertThat(target.getInstanceRecall(), is(0.0)); }