### Question:
AssignableNode implements Comparable<AssignableNode> { public Map<String, Integer> getMaxCapacity() { return _maxAllowedCapacity; } AssignableNode(ClusterConfig clusterConfig, InstanceConfig instanceConfig, String instanceName); Set<String> getAssignedPartitionsByResource(String resource); int getAssignedTopStatePartitionsCount(); int getAssignedReplicaCount(); Map<String, Integer> getRemainingCapacity(); Map<String, Integer> getMaxCapacity(); float getProjectedHighestUtilization(Map<String, Integer> newUsage); String getInstanceName(); Set<String> getInstanceTags(); String getFaultZone(); boolean hasFaultZone(); Map<String, List<String>> getDisabledPartitionsMap(); int getMaxPartition(); @Override int hashCode(); @Override int compareTo(AssignableNode o); @Override String toString();  }### Answer:
@Test public void testDefaultInstanceCapacity() { ClusterConfig testClusterConfig = new ClusterConfig("testClusterConfigId"); testClusterConfig.setDefaultInstanceCapacityMap(_capacityDataMap); InstanceConfig testInstanceConfig = new InstanceConfig("testInstanceConfigId"); AssignableNode assignableNode = new AssignableNode(testClusterConfig, testInstanceConfig, _testInstanceId); Assert.assertEquals(assignableNode.getMaxCapacity(), _capacityDataMap); }