@Test
public void testEquals()
{
final GranularitySpec spec = new UniformGranularitySpec(
Granularities.DAY,
null,
Lists.newArrayList(
Intervals.of("2012-01-08T00Z/2012-01-11T00Z"),
Intervals.of("2012-01-07T00Z/2012-01-08T00Z"),
Intervals.of("2012-01-03T00Z/2012-01-04T00Z"),
Intervals.of("2012-01-01T00Z/2012-01-03T00Z")
)
);
equalsCheck(
spec,
new UniformGranularitySpec(
Granularities.DAY,
null,
Lists.newArrayList(
Intervals.of("2012-01-08T00Z/2012-01-11T00Z"),
Intervals.of("2012-01-07T00Z/2012-01-08T00Z"),
Intervals.of("2012-01-03T00Z/2012-01-04T00Z"),
Intervals.of("2012-01-01T00Z/2012-01-03T00Z")
)
)
);
}