GroupPartitioner { public List<PartitionKey> getSplitPoints() { return splitPoints; } GroupPartitioner(final String group, final List<PartitionKey> splitPoints); String getGroup(); int getPartitionId(final PartitionKey partitionKey); List<Integer> getPartitionIds(final Object[] partialKey); PartitionKey getIthPartitionKey(final int i); List<PartitionKey> getSplitPoints(); List<Partition> getPartitions(); @Override String toString(); @Override boolean equals(final Object obj); @Override int hashCode();  }
@Test public void testEmptyListIsValid() { final GroupPartitioner partitioner = new GroupPartitioner("GROUP", new ArrayList<>()); final int size = partitioner.getSplitPoints().size(); assertEquals(0, size); }