### Question:
CloudProvider { public String getName() { return this.name; } CloudProvider(String providerName, Integer limitOfVMs, String runtimeConnectorClass, String connectorJarPath,
        String connectorMainClass, Map<String, String> connectorProperties); void addCloudImage(CloudImageDescription cid); void addInstanceType(CloudInstanceTypeDescription rd); void newCoreElementsDetected(List<Integer> newCores); String getName(); float getCurrentCostPerHour(); float getTotalCost(); Collection<CloudInstanceTypeDescription> getAllTypes(); Set<String> getAllInstanceTypeNames(); CloudInstanceTypeDescription getInstanceType(String name); List<CloudInstanceTypeDescription> getCompatibleTypes(MethodResourceDescription requirements); Collection<CloudImageDescription> getAllImages(); Set<String> getAllImageNames(); CloudImageDescription getImage(String name); List<CloudImageDescription> getCompatibleImages(MethodResourceDescription requirements); Float getInstanceCostPerHour(CloudMethodResourceDescription instanceDescription); int[][] getSimultaneousImpls(String type); boolean isAutomaticScalingEnabled(); long getNextCreationTime(); long getTimeSlot(); List<ResourceCreationRequest> getPendingRequests(); int[] getPendingCoreCounts(); int getCurrentVMCount(); Set<CloudMethodWorker> getHostedWorkers(); void stopReached(); void terminateAll(); ResourceCreationRequest requestResourceCreation(CloudMethodResourceDescription instanceDescription,
        ResourceCreationListener listener); void refusedCreation(ResourceCreationRequest rcr); void confirmedCreation(ResourceCreationRequest rcr, CloudMethodWorker worker,
        CloudMethodResourceDescription granted); void requestResourceReduction(CloudMethodWorker worker, CloudMethodResourceDescription reduction); CloudMethodWorker getHostedWorker(String name); boolean canHostMoreInstances(); CloudMethodResourceDescription getResourceDescription(String instanceTypeName, String imageName); String getCurrentState(String prefix);  }### Answer:
@Test public void testNewProvider() throws Exception { Map<String, String> properties = new HashMap<>(); CloudProvider cp = null; try { cp = new CloudProvider(PROVIDER_NAME, 0, RUNTIME_CONNECTOR, null, null, properties); } catch (Exception e) { fail("Could not create the Cloud Provider"); return; } if (cp.getName().compareTo(PROVIDER_NAME) != 0) { fail("Cloud Provider is not storing the name properly"); } }