InfinispanSpanCache implements SpanCache, ServiceLifecycle { @Override public Span get(String tenantId, String id) { Span span = spansCache.get(id); log.debugf("Get span [id=%s] = %s", id, span); return span; } InfinispanSpanCache();  InfinispanSpanCache(CacheContainer cacheContainer); @Override @PostConstruct void init(); @Override Span get(String tenantId, String id); @Override void store(String tenantId, List<Span> spans); @Override void store(String tenantId, List<Span> spans, Function<Span, String> cacheKeyEntrySupplier); @Override Set<Span> getChildren(String tenant, String id); @Override Set<Span> getTrace(String tenant, String id);  }
@Test public void testNull() { Assert.assertNull(spanCache.get(null, "id1")); }