### Question:
Provisioner { public int getAssignedWorkers(String tenantId) { return assignments.containsKey(tenantId) ? assignments.get(tenantId) : 0; } Provisioner(String id, String host, Integer port, Integer capacityTotal, Map<String, Integer> usage,
                     Map<String, Integer> assignments); String getId(); String getHost(); int getPort(); int getCapacityTotal(); int getCapacityFree(); Map<String, Integer> getUsage(); Set<String> getAssignedTenants(); Set<String> getLiveTenants(); void removeTenantAssignments(String tenantId); int tryAddTenantAssignments(String tenantId, int numToAdd); int tryRemoveTenantAssignments(String tenantId, int numToRemove); int getAssignedWorkers(String tenantId); int getLiveWorkers(String tenantId); void setUsage(Map<String, Integer> usage); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testGetAssignedWorkersWorksWithNonexistantTenant() { Provisioner provisioner = new Provisioner( "id", "host", 12345, 100, ImmutableMap.<String, Integer>of("t1", 5, "t2", 10, "t3", 20), ImmutableMap.<String, Integer>of("t1", 5, "t2", 10, "t3", 25) ); Assert.assertEquals(0, provisioner.getAssignedWorkers("t4")); }