*/
private void setGetUidName() {
when(metrics.getNameAsync(new byte[] { 0, 0, 1 }))
.thenReturn(Deferred.fromResult("sys.cpu.0"));
when(metrics.getNameAsync(new byte[] { 0, 0, 2 })).thenThrow(
new NoSuchUniqueId("metric", new byte[] { 0, 0, 2}));
when(tag_names.getNameAsync(new byte[] { 0, 0, 1 }))
.thenReturn(Deferred.fromResult("host"));
when(tag_names.getNameAsync(new byte[] { 0, 0, 2 })).thenThrow(
new NoSuchUniqueId("tagk", new byte[] { 0, 0, 2}));
when(tag_values.getNameAsync(new byte[] { 0, 0, 1 }))
.thenReturn(Deferred.fromResult("web01"));
when(tag_values.getNameAsync(new byte[] { 0, 0, 2 })).thenThrow(
new NoSuchUniqueId("tag_values", new byte[] { 0, 0, 2}));
}