### Question:
Histogram { public List<Bucket> getBuckets() { compute(); return this.buckets; } Histogram( MathOperations<T> operations,
                      List<T> values );  Histogram( MathOperations<T> operations,
                      T... values ); BucketingStrategy getStrategy(); MathOperations<T> getMathOperations(); void setStrategy( double median,
                             double standardDeviation,
                             int sigma ); void setStrategy( T minimum,
                             T maximum ); void setStrategyToDefault(); int getSignificantFigures(); Histogram<T> setSignificantFigures( int significantFigures ); int getBucketCount(); Histogram<T> setBucketCount( int count ); List<Bucket> getBuckets(); long getTotalNumberOfValues(); List<String> getTextGraph( int maxBarLength ); static final int DEFAULT_BUCKET_COUNT; static final int DEFAULT_SIGNIFICANT_FIGURES; }### Answer:
@Test public void shouldReturnListOfBuckets() { Float[] values = {3.0f, 1.0f, 2.0f, 4.0f}; Histogram<Float> gram = new Histogram<Float>(new FloatOperations(), values); assertTrue(gram.getBuckets() instanceof LinkedList<?>); }