@Test
public void testPathConversion() {

    final CloudnamePath path = new CloudnamePath(
            new String[] {"test", "local", "service", "instance" });
    final InstanceCoordinate coordinate = new InstanceCoordinate(path);
    final CloudnamePath cnPath = coordinate.toCloudnamePath();
    assertThat(cnPath.length(), is(path.length()));
    assertThat(cnPath, is(equalTo(path)));
}