final MetricsScope fooScope = Metrics.startScope(scopeName);
// cannot open scope that is already open:
expectIOE(new Callable<Void>() {
@Override
public Void call() throws Exception {
fooScope.open();
return null;
}
});
assertSame(fooScope, Metrics.getScope(scopeName));