ConsecutiveDaysAccumulateFunction implements AccumulateFunction { @Override public Serializable createContext() { return new ConsecutiveDaysBuckets(); }  @Override void accumulate(Serializable context, Object value); @Override Serializable createContext(); @Override Object getResult(Serializable context); @Override void init(Serializable context); @Override void reverse(Serializable context, Object value); @Override boolean supportsReverse(); @Override void writeExternal(ObjectOutput out); @Override void readExternal(ObjectInput in); @Override Class<?> getResultType();  }
@Test public void testCreateContext() { ConsecutiveDaysAccumulateFunction f = new ConsecutiveDaysAccumulateFunction(); Object o = f.createContext(); Assert.assertNotNull(o); Assert.assertTrue(o instanceof ConsecutiveDaysAccumulateFunction.ConsecutiveDaysBuckets); ConsecutiveDaysAccumulateFunction.ConsecutiveDaysBuckets buckets = (ConsecutiveDaysBuckets) o; Assert.assertNull(buckets.buckets); }