### Question:
DiscreteDistribution implements DiscreteProbabilityDistribution<T> { public Degree getDegree(T value) { Degree deg = valueSorMap.get(value); return deg != null ? deg : falze; } DiscreteDistribution();  DiscreteDistribution(Collection<T> values,
                                Collection<Degree> probabilities); void put(T value, Degree prob); T getBest(); Degree getDegree(T value); Degree get(T value); Number domainSize(); int size(); Map<T, Degree> getDistribution(); Set<T> getSupport(); String toString(); String serialize(); boolean isDiscrete(); boolean isNormalized(); void setNormalized(boolean normalized); Iterator<T> iterator();  }### Answer:
@Test public void testGetDegree() throws Exception { }