### Question:
KullbackLeibler implements RouterLevelDivergence { @Override public float getConfidence() { if (!initialized) { throw new IllegalStateException("There is no data. Did you forget to call init?"); } return confidence; }  @Override void init(final RouterLevelHistogram p, final RouterLevelHistogram q); @Override float getDivergence(); @Override float getConfidence();  }### Answer:
@Test(expected = IllegalStateException.class) public void testNoIniNoConfidence() { kl.getConfidence(); }