@@ -0,0 +1,1897 @@
+package com.rackspacecloud.blueflood.eventemitter;%0A%0Aimport com.rackspacecloud.blueflood.types.Locator;%0Aimport com.rackspacecloud.blueflood.types.Points;%0Aimport com.rackspacecloud.blueflood.types.Rollup;%0Aimport com.rackspacecloud.blueflood.types.SimpleNumber;%0Aimport junit.framework.Assert;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport java.io.IOException;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class RollupEventTest %7B%0A%0A    Locator locator;%0A    Rollup rollup;%0A    String unit;%0A    String granularity;%0A    long timestamp;%0A%0A    RollupEvent event;%0A%0A    @Before%0A    public void setUp() throws IOException %7B%0A%0A        locator = Locator.createLocatorFromPathComponents(%22tenant%22, %22a%22, %22b%22);%0A        Points%3CSimpleNumber%3E points = new Points%3CSimpleNumber%3E();%0A        rollup = Rollup.BasicFromRaw.compute(points);%0A        unit = %22Some init%22;%0A        granularity = %22Some granularity%22;%0A        timestamp = 1451631661000L;     // 2016-01-01 01:01:01 CST%0A%0A        event = new RollupEvent(locator, rollup, unit, granularity, timestamp);%0A    %7D%0A%0A    @Test%0A    public void locatorGetsSetInConstructor() %7B%0A        Assert.assertSame(locator, event.getLocator());%0A    %7D%0A%0A    @Test%0A    public void rollupGetsSetInConstructor() %7B%0A        Assert.assertSame(rollup, event.getRollup());%0A    %7D%0A%0A    @Test%0A    public void unitGetsSetInConstructor() %7B%0A        Assert.assertEquals(unit, event.getUnit());%0A    %7D%0A%0A    @Test%0A    public void granularityGetsSetInConstructor() %7B%0A        Assert.assertEquals(granularity, event.getGranularityName());%0A    %7D%0A%0A    @Test%0A    public void timestampGetsSetInConstructor() %7B%0A        Assert.assertEquals(timestamp, event.getTimestamp());%0A    %7D%0A%0A    @Test%0A    public void setUnitChangesUnit() %7B%0A        //given%0A        String unit2= %22Some other unit%22;%0A        // when%0A        event.setUnit(unit2);%0A        // then%0A        assertEquals(unit2, event.getUnit());%0A    %7D%0A%7D%0A

Add a test class for RollupEvent.