### Question:
PartitionKey { List<String> getValues() { return partitionValues; } PartitionKey(Partition partition);  PartitionKey(List<String> partitionValues); @Override boolean equals(Object other); @Override int hashCode();  }### Answer:
@Test public void testGetValues() { List<String> values = Lists.newArrayList("value1", "value2"); Partition partition = TestObjects.getTestPartition("ns", "table", values); PartitionKey partitionKey1 = new PartitionKey(partition); assertEquals(Lists.newArrayList(values), partitionKey1.getValues()); PartitionError partitionError = TestObjects.getPartitionError(values, new RuntimeException("foo")); PartitionKey partitionKey2 = new PartitionKey(partitionError.getPartitionValues()); assertEquals(Lists.newArrayList(values), partitionKey2.getValues()); }