### Question:
MessageBusStatus { public void removePublishedMessagesPerMicroservice(String microservice) { if (publishedMessagesPerMicroservice.containsKey(microservice)) publishedMessagesPerMicroservice.remove(microservice); } MessageBusStatus(); long getProcessedMessages(); Long getPublishedMessagesPerMicroservice(String microservice); Map<String, Long> getPublishedMessagesPerMicroservice(); MessageBusStatus increasePublishedMessagesPerMicroservice(String microservice); float getAverageSpeed(); MessageBusStatus setAverageSpeed(float averageSpeed); void removePublishedMessagesPerMicroservice(String microservice); String getJsonPublishedMessagesPerMicroservice();  }### Answer:
@Test public void testRemovePublishedMessagesPerMicroservice() { messageBusStatus.removePublishedMessagesPerMicroservice(null); messageBusStatus.increasePublishedMessagesPerMicroservice("microservice"); assertEquals(1, messageBusStatus.getPublishedMessagesPerMicroservice().size()); messageBusStatus.removePublishedMessagesPerMicroservice("microservice"); assertEquals(0, messageBusStatus.getPublishedMessagesPerMicroservice().size()); }