### Question:
MessageBusStatus { public String getJsonPublishedMessagesPerMicroservice() { JsonArrayBuilder arrayBuilder = Json.createArrayBuilder(); publishedMessagesPerMicroservice.forEach((key, value) -> { JsonObjectBuilder objectBuilder = Json.createObjectBuilder() .add("id", key) .add("messagecount", value); arrayBuilder.add(objectBuilder); }); return arrayBuilder.build().toString(); } 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 testGetJsonPublishedMessagesPerMicroservice() { assertFalse(messageBusStatus.getJsonPublishedMessagesPerMicroservice().contains("id")); messageBusStatus.increasePublishedMessagesPerMicroservice("microservice"); assertTrue(messageBusStatus.getJsonPublishedMessagesPerMicroservice().contains("id")); }