@Test
public void partition5Test()
{

  DummyOperator dummyOperator = new DummyOperator(5);
  StatelessPartitioner<DummyOperator> statelessPartitioner = new StatelessPartitioner<>(5);
  Collection<Partition<DummyOperator>> partitions = Lists.newArrayList();
  DefaultPartition<DummyOperator> defaultPartition = new DefaultPartition<>(dummyOperator);
  partitions.add(defaultPartition);
  Collection<Partition<DummyOperator>> newPartitions = statelessPartitioner.definePartitions(partitions, new PartitioningContextImpl(null, 0));
  Assert.assertEquals("Incorrect number of partitions", 5, newPartitions.size());
  for (Partition<DummyOperator> partition : newPartitions) {
    Assert.assertEquals("Incorrect cloned value", 5, partition.getPartitionedInstance().getValue());
  }
}