BucketDataItem implements Serializable { public int getPeriod() { return period; } BucketDataItem(int period, Date startTime, DescriptiveStatistics stats); int getPeriod(); Date getStartTime(); DescriptiveStatistics getStats();  }
@Test public void testBucketDataItem_1() throws Exception { int period = 1; Date startTime = new Date(); DescriptiveStatistics stats = new DescriptiveStatistics(); BucketDataItem result = new BucketDataItem(period, startTime, stats); assertNotNull(result); assertEquals(1, result.getPeriod()); }
@Test public void testGetPeriod_1() throws Exception { BucketDataItem fixture = new BucketDataItem(1, new Date(), new DescriptiveStatistics()); int result = fixture.getPeriod(); assertEquals(1, result); }