### Question:
ZkDomainVersion extends AbstractDomainVersion implements DomainVersion { public static ZkDomainVersion create(ZooKeeperPlus zk, String domainPath, int versionNumber, DomainVersionProperties domainVersionProperties, DomainVersionPropertiesSerialization domainVersionPropertiesSerialization) throws InterruptedException, KeeperException, IOException { String versionPath = ZkPath.append(domainPath, ZkDomain.VERSIONS_PATH, getPathName(versionNumber)); DomainVersionMetadata initialMetadata = new DomainVersionMetadata(null, new HashMap<Integer, PartitionMetadata>(), false, 0); setProperties(domainVersionPropertiesSerialization, domainVersionProperties, initialMetadata); return new ZkDomainVersion(zk, versionPath, domainVersionPropertiesSerialization, true, initialMetadata); } ZkDomainVersion(ZooKeeperPlus zk, String path,
                         DomainVersionPropertiesSerialization domainVersionPropertiesSerialization);  ZkDomainVersion(ZooKeeperPlus zk,
                         String path,
                         DomainVersionPropertiesSerialization domainVersionPropertiesSerialization,
                         boolean create,
                         DomainVersionMetadata initialMetadata); static ZkDomainVersion create(ZooKeeperPlus zk,
                                       String domainPath,
                                       int versionNumber,
                                       DomainVersionProperties domainVersionProperties,
                                       DomainVersionPropertiesSerialization domainVersionPropertiesSerialization); @Override int getVersionNumber(); @Override Long getClosedAt(); @Override void close(); @Override void cancel(); @Override Collection<PartitionMetadata> getPartitionsMetadata(); @Override void addPartitionProperties(final int partNum,
                                     final long numBytes,
                                     final long numRecords); @Override boolean isDefunct(); @Override void setDefunct(final boolean isDefunct); @Override DomainVersionProperties getProperties(); @Override void setProperties(final DomainVersionProperties properties); static String getPathName(int versionNumber); boolean delete();  }### Answer:
@Test public void testCreate() throws Exception { DomainVersion dv = ZkDomainVersion.create(getZk(), getRoot(), 1, null, null); assertEquals(1, dv.getVersionNumber()); assertNull(dv.getClosedAt()); assertFalse(DomainVersions.isClosed(dv)); assertFalse(dv.isDefunct()); }