@Test
public void testResolve() throws IOException {

  ServiceRecord record = createRecord("0");
  registry.bind("test/registryTestNode", record, 1);
  Assert.assertTrue(fs.exists(new Path("test/registryTestNode/_record")));
  System.out.println("Read record that exists");
  ServiceRecord readRecord = registry.resolve("test/registryTestNode");
  Assert.assertNotNull(readRecord);
  Assert.assertTrue(record.equals(readRecord));
  System.out.println("Try to read record that does not exist");
  try {
    readRecord = registry.resolve("test/nonExistentNode");
    Assert.fail("Should throw an error, record does not exist");
  } catch (IOException e) {
  }
}