@Test
public void oneCommunity() {

    final LongLongMap communitySizeMap = new LongLongScatterMap();
    communitySizeMap.addTo(1, 4);
    Histogram histogram = CommunityHistogram.buildFrom(communitySizeMap);
    assertEquals(4.0, histogram.getValueAtPercentile(100D), 0.01);
}