NodeGroupCreate { public Integer instancePerHost() { if (this.placementPolicies != null && this.placementPolicies.getInstancePerHost() != null) { return this.placementPolicies.getInstancePerHost(); } return null; } NodeGroupCreate();  NodeGroupCreate(NodeGroupCreate group); NodeGroupInfo toNodeGroupInfo(); Map<String, Object> getConfiguration(); void setConfiguration(Map<String, Object> configuration); @RestRequired String getName(); void setName(String name); @RestRequired List<String> getRoles(); void setRoles(List<String> roles); int getInstanceNum(); void setInstanceNum(int instanceNum); InstanceType getInstanceType(); void setInstanceType(InstanceType instanceType); PlacementPolicy getPlacementPolicies(); void setPlacementPolicies(PlacementPolicy placementPolicies); Integer getCpuNum(); void setCpuNum(Integer cpuNum); Integer getMemCapacityMB(); void setMemCapacityMB(Integer memCapacityMB); Float getSwapRatio(); void setSwapRatio(Float swapRatio); StorageRead getStorage(); void setStorage(StorageRead storage); List<String> getRpNames(); void setRpNames(List<String> rpNames); String getHaFlag(); void setHaFlag(String haFlag); LatencyPriority getLatencySensitivity(); void setLatencySensitivity(LatencyPriority latencySensitivity); Float getReservedCpuRatio(); void setReservedCpuRatio(
         Float reservedCpuRatio); Float getReservedMemRatio(); void setReservedMemRatio(
         Float reservedMemRatio); @RestIgnore List<VcCluster> getVcClusters(ClusterCreate cluster); void setVcClusters(List<VcCluster> vcClusters); @RestIgnore String getVmFolderPath(); void setVmFolderPath(String vmFolderPath); Integer calculateHostNum(); @JsonIgnore String getReferredGroup(); @JsonIgnore boolean isStrictReferred(); Integer instancePerHost(); boolean validatePlacementPolicies(ClusterCreate cluster,
         Map<String, NodeGroupCreate> groups, List<String> failedMsgList,
         List<String> warningMsgList); static String[] getImagestoreNamePattern(ClusterCreate clusterSpec,
         NodeGroupCreate nodeGroupSpec); static String[] getDiskstoreNamePattern(ClusterCreate clusterSpec,
         NodeGroupCreate nodeGroupSpec);  }
@Test public void testInstancePerHost() { NodeGroupCreate group = new NodeGroupCreate(); PlacementPolicy placementPolicy = new PlacementPolicy(); placementPolicy.setInstancePerHost(3); group.setPlacementPolicies(placementPolicy); assertEquals(placementPolicy.getInstancePerHost(), group.instancePerHost()); }