Coverage { public int getHashLength() { if (hashes.size() == 0) return 0; else return hashes.iterator().next().length(); } Coverage(Set<String> hashes, double ratio);   Coverage(CoverageLongs coverage); Set<String> getHashes(); double getRatio(); int getHashLength(); @Override String toString();  }
@Test public void testCoverageHashLength() { Coverage coverage = new Coverage(Sets.<String> newHashSet(), 1.0); assertEquals(0, coverage.getHashLength()); System.out.println(coverage); }