### Question:
StatisticSynapseConfigurationObserver implements SynapseObserver { @Override public void apiUpdated(API api) { ArtifactHolder holder = new ArtifactHolder(); holder.setParent(api.getName()); api.setComponentStatisticsId(holder); api.getAspectConfiguration().setHashCode(holder.getHashCodeAsString()); StatisticIdentityGenerator.conclude(holder); }  @Override void sequenceAdded(Mediator sequence); @Override void sequenceRemoved(Mediator sequence); @Override void sequenceTemplateAdded(Mediator template); @Override void sequenceTemplateRemoved(Mediator template); @Override void entryAdded(Entry entry); @Override void entryRemoved(Entry entry); @Override void endpointAdded(Endpoint endpoint); @Override void endpointRemoved(Endpoint endpoint); @Override void proxyServiceAdded(ProxyService proxy); @Override void proxyServiceRemoved(ProxyService proxy); @Override void apiAdded(API api); @Override void apiRemoved(API api); @Override void apiUpdated(API api); @Override void inboundEndpointAdded(InboundEndpoint inboundEndpoint); @Override void inboundEndpointRemoved(InboundEndpoint inboundEndpoint); @Override void inboundEndpointUpdated(InboundEndpoint inboundEndpoint); @Override void startupAdded(Startup startup); @Override void startupRemoved(Startup startup); @Override void eventSourceAdded(SynapseEventSource eventSource); @Override void eventSourceRemoved(SynapseEventSource eventSource); @Override void priorityExecutorAdded(PriorityExecutor exec); @Override void priorityExecutorRemoved(PriorityExecutor exec);  }### Answer:
@Test public void testApiUpdated() { final String apiName = "testName"; final String apiContext = "/testContext"; API api = new API(apiName, apiContext); observer.apiUpdated(api); Assert.assertNotNull("New hash must be set by the method", api.getAspectConfiguration().getHashCode()); }