MySQLStorage extends StorageComponent { @Override public final String toString() { return "MySQLStorage{datasource=" + datasource + "}"; } MySQLStorage(MySQLStorage.Builder builder); static Builder newBuilder(); DataSource datasource(); @Override SpanStore spanStore(); @Override Traces traces(); @Override ServiceAndSpanNames serviceAndSpanNames(); @Override AutocompleteTags autocompleteTags(); @Override SpanConsumer spanConsumer(); @Override CheckResult check(); @Override final String toString(); @Override void close();  }
@Test public void toStringContainsOnlySummaryInformation() { DataSource datasource = mock(DataSource.class); when(datasource.toString()).thenReturn("Blamo"); assertThat(storage(datasource)).hasToString("MySQLStorage{datasource=Blamo}"); }