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