*/
public class MetricExistsMatcher<T extends AbstractMetricSink> extends BaseMatcher<T> {
@Override
public boolean matches(Object item) {
AbstractMetricSink metric = (AbstractMetricSink) item;
Table table = (Table) metric.shell.executeCommand(metric.getDslName() + " list").getResult();
return table.getRows().contains(new TableRow().addValue(1, metric.getName()));
}