### Question:
TSDBConnection implements Connection4TSDB { @Override public boolean isSupported() { String versionJson = version(); if (StringUtils.isBlank(versionJson)) { throw new RuntimeException("Cannot get the version!"); } String version = JSON.parseObject(versionJson).getString("version"); if (StringUtils.isBlank(version)) { return false; } for (String prefix : getSupportVersionPrefix()) { if (version.startsWith(prefix)) { return true; } } return false; } TSDBConnection(String address); @Override String address(); @Override String version(); @Override String config(); @Override String[] getSupportVersionPrefix(); @Override void sendDPs(String metric, Long start, Long end, RecordSender recordSender); @Override boolean put(DataPoint4TSDB dp); @Override boolean put(List<DataPoint4TSDB> dps); @Override boolean put(String dps); @Override boolean isSupported();  }### Answer:
@Test public void testIsSupported() { Assert.assertTrue(new TSDBConnection(TSDB_ADDRESS).isSupported()); }