### Question:
ZkPartitionProperties implements PartitionProperties { public static ZkPartitionProperties create(ZooKeeperPlus zk, String partsRoot, int partNum, long numBytes, long numRecords) throws KeeperException, InterruptedException { String partPath = ZkPath.append(partsRoot, nodeName(partNum)); if (zk.exists(partPath, false) == null) { zk.create(partPath, null); zk.createLong(ZkPath.append(partPath, "num_bytes"), numBytes); zk.createLong(ZkPath.append(partPath, "num_records"), numRecords); zk.create(ZkPath.append(partPath, DotComplete.NODE_NAME), null); } return new ZkPartitionProperties(zk, partPath); } ZkPartitionProperties(ZooKeeperPlus zk, String partInfoPath); static ZkPartitionProperties create(ZooKeeperPlus zk, String partsRoot, int partNum, long numBytes, long numRecords); @Override long getNumBytes(); @Override long getNumRecords(); @Override int getPartitionNumber(); static String nodeName(int partNum);  }### Answer:
@Test public void testCreate() throws Exception { ZkPartitionProperties pi = ZkPartitionProperties.create(getZk(), getRoot(), 1, 15000, 550); assertEquals(1, pi.getPartitionNumber()); assertEquals(15000, pi.getNumBytes()); assertEquals(550, pi.getNumRecords()); pi = ZkPartitionProperties.create(getZk(), getRoot(), 1, 15000, 550); assertEquals(1, pi.getPartitionNumber()); assertEquals(15000, pi.getNumBytes()); assertEquals(550, pi.getNumRecords()); }